This region of the brain functions as an endocrine gland by producing hormones that influence the activities of the pituitary gland.