X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FMapping.php;h=15e3b1576e4127da0fa1e96e43f9cf13103758e4;hb=2817d84b3736cb0c6051fd9fac875e85f8497caa;hp=ae1806af2aa7710ec753152d29b71c1b6f003b2b;hpb=d92623decb352eab5b403d0c9cab181a831bfaac;p=civicrm-core.git diff --git a/CRM/Admin/Form/Mapping.php b/CRM/Admin/Form/Mapping.php index ae1806af2a..15e3b1576e 100644 --- a/CRM/Admin/Form/Mapping.php +++ b/CRM/Admin/Form/Mapping.php @@ -1,7 +1,7 @@ add('text', 'name', ts('Name'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Mapping', 'name'), TRUE ); - $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', array('CRM_Core_DAO_Mapping', $this->_id)); + $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', array( + 'CRM_Core_DAO_Mapping', + $this->_id, + )); $this->addElement('text', 'description', ts('Description'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Mapping', 'description') @@ -83,15 +85,14 @@ class CRM_Admin_Form_Mapping extends CRM_Admin_Form { /** * @return array */ - function setDefaultValues() { + public function setDefaultValues() { $defaults = parent::setDefaultValues(); return $defaults; } /** - * Function to process the form + * Process the form submission. * - * @access public * * @return void */ @@ -114,4 +115,3 @@ class CRM_Admin_Form_Mapping extends CRM_Admin_Form { } } -