X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FContactType.php;h=72c86fe7587f9911a871f84821f2833bbfdb1d09;hb=4fd26f71c62960fbbb738a549bb595926f1eb70b;hp=1b3b21602bda4e1913971713eee0221fda3bfd53;hpb=1a676f190f24b5633b76b90a7dda95f2cc5b4dce;p=civicrm-core.git diff --git a/CRM/Admin/Page/ContactType.php b/CRM/Admin/Page/ContactType.php index 1b3b21602b..72c86fe758 100644 --- a/CRM/Admin/Page/ContactType.php +++ b/CRM/Admin/Page/ContactType.php @@ -1,9 +1,9 @@ - array( + CRM_Core_Action::UPDATE => array( 'name' => ts('Edit'), 'url' => 'civicrm/admin/options/subtype', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Contact Type'), ), - CRM_Core_Action::DISABLE => - array( + CRM_Core_Action::DISABLE => array( 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Contact Type'), ), - CRM_Core_Action::ENABLE => - array( + CRM_Core_Action::ENABLE => array( 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Contact Type'), ), - CRM_Core_Action::DELETE => - array( + CRM_Core_Action::DELETE => array( 'name' => ts('Delete'), 'url' => 'civicrm/admin/options/subtype', 'qs' => 'action=delete&id=%%id%%', @@ -105,7 +103,6 @@ class CRM_Admin_Page_ContactType extends CRM_Core_Page_Basic { } function browse() { - CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js'); $rows = CRM_Contact_BAO_ContactType::contactTypeInfo(TRUE); foreach ($rows as $key => $value) { $mask = NULL; @@ -154,6 +151,8 @@ class CRM_Admin_Page_ContactType extends CRM_Core_Page_Basic { /** * Get user context. * + * @param null $mode + * * @return string user context. */ function userContext($mode = NULL) {