_contactType; $class::buildQuickForm($this, 2); } /** * set defaults for the form * * @return array * @access public */ public function setDefaultValues() { return parent::setDefaultValues(); } /** * process the form * * @return void * @access public */ public function postProcess() { $params = $this->exportValues(); // Process / save contact info $params['contact_type'] = $this->_contactType; $params['contact_id'] = $this->_contactId; if (!empty($this->_contactSubType)) { $params['contact_sub_type'] = $this->_contactSubType; } CRM_Contact_BAO_Contact::create($params); // Saving current employer affects relationship tab $this->ajaxResponse['updateTabs'] = array( '#tab_rel' => CRM_Contact_BAO_Contact::getCountComponent('rel', $this->_contactId), ); $this->response(); } }