public function addRules() { $this->addFormRule(array('CRM_Volunteer_Form_Volunteer', 'validateForm')); parent::addRules(); }