The part of physiology that treats of the glands.