Quadrupole Phase Transitions in Magnetic Solids