X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FContactType.php;h=74211e0ea06f9f723406f73e3c2321995e05cc8c;hb=e3a363809875b227257e2247d43ed96115817c65;hp=7c9f9da02c7021749e802876b0a48ac30d003bfa;hpb=232624b1bfe3beee7476775b278b9509e1607487;p=civicrm-core.git diff --git a/CRM/Admin/Form/ContactType.php b/CRM/Admin/Form/ContactType.php index 7c9f9da02c..74211e0ea0 100644 --- a/CRM/Admin/Form/ContactType.php +++ b/CRM/Admin/Form/ContactType.php @@ -1,9 +1,9 @@ setPageTitle(ts('Contact Type')); + if ($this->_action & CRM_Core_Action::DELETE) { return; } @@ -83,7 +85,10 @@ class CRM_Admin_Form_ContactType extends CRM_Admin_Form { /** * global form rule * - * @param array $fields the input form values + * @param array $fields the input form values + * + * @param $files + * @param $self * * @return true if no errors, else array of errors * @access public @@ -117,7 +122,7 @@ class CRM_Admin_Form_ContactType extends CRM_Admin_Form { * * @access public * - * @return None + * @return void */ public function postProcess() { CRM_Utils_System::flushCache(); @@ -150,5 +155,6 @@ class CRM_Admin_Form_ContactType extends CRM_Admin_Form { array(1 => $contactType->label) ), ts('Saved'), 'success'); } + }