X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FDomain.php;h=5978859faf604a9e0b7a302c937a0abdcc6b03fc;hb=def009f6ffde7d063873b76711c03c463548c479;hp=af7d6a2de0714a5296d4a61540b6a2e0490f9134;hpb=ab2e3179d57fbd8b60c0730ec38b6cb678100a28;p=civicrm-core.git diff --git a/CRM/Contact/Form/Domain.php b/CRM/Contact/Form/Domain.php index af7d6a2de0..5978859faf 100644 --- a/CRM/Contact/Form/Domain.php +++ b/CRM/Contact/Form/Domain.php @@ -1,7 +1,7 @@ addFormRule(array('CRM_Contact_Form_Domain', 'formRule')); } /** * Global validation rules for the form * - * @param array $fields posted values of the form + * @param array $fields + * Posted values of the form. * * @return array list of errors to be posted back to the form * @static - * @access public */ - static function formRule($fields) { + public static function formRule($fields) { // check for state/country mapping $errors = CRM_Contact_Form_Edit_Address::formRule($fields, CRM_Core_DAO::$_nullArray, CRM_Core_DAO::$_nullObject); // $errors === TRUE means no errors from above formRule excution, @@ -237,7 +234,6 @@ class CRM_Contact_Form_Domain extends CRM_Core_Form { * Process the form when submitted * * @return void - * @access public */ public function postProcess() { $params = $this->exportValues(); @@ -269,7 +265,7 @@ class CRM_Contact_Form_Domain extends CRM_Core_Form { } $params += array('contact_id' => $this->_contactId); - $contactParams = array ( + $contactParams = array( 'sort_name' => $domain->name, 'display_name' => $domain->name, 'legal_name' => $domain->name, @@ -323,4 +319,3 @@ class CRM_Contact_Form_Domain extends CRM_Core_Form { $session->replaceUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1')); } } -