$contactId]; $defaults = []; CRM_Contact_BAO_Contact::getValues($params, $defaults); //get the current employer name if (CRM_Utils_Array::value('contact_type', $defaults) == 'Individual') { if (!empty($defaults['employer_id']) && !empty($defaults['organization_name'])) { $defaults['current_employer'] = $defaults['organization_name']; $defaults['current_employer_id'] = $defaults['employer_id']; } } $this->assign('contactId', $contactId); $this->assign($defaults); // check logged in user permission CRM_Contact_Page_View::checkUserPermission($this, $contactId); // finally call parent parent::run(); } }