X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FLabelFormats.php;h=8c25975a4678a0ebd6c60fec74bde253153894b0;hb=87dab4a469c6829c40fe444cfbe469ce9254ed1f;hp=33083f8985cb79371c415f5eea744188101eb6eb;hpb=66c6206c9d19f2aa13ff0f7051c9952b6fbdad50;p=civicrm-core.git diff --git a/CRM/Admin/Page/LabelFormats.php b/CRM/Admin/Page/LabelFormats.php index 33083f8985..8c25975a46 100644 --- a/CRM/Admin/Page/LabelFormats.php +++ b/CRM/Admin/Page/LabelFormats.php @@ -137,19 +137,18 @@ class CRM_Admin_Page_LabelFormats extends CRM_Core_Page_Basic { $format['groupName'] = ts('Mailing Label'); $format['action'] = CRM_Core_Action::formLink(self::links(), $action, - array('id' => $format['id'], 'group' => 'label_format')); + array('id' => $format['id'], 'group' => 'label_format'), + ts('more'), + FALSE, + 'labelFormat.manage.action', + 'LabelFormat', + $format['id'] + ); } // Add action links to each of the Label Formats foreach ($nameFormatList as & $format) { - $action = array_sum(array_keys($this->links())); - if (CRM_Utils_Array::value('is_reserved', $format)) { - $action -= CRM_Core_Action::DELETE; - } - $format['groupName'] = ts('Name Badge'); - $format['action'] = CRM_Core_Action::formLink(self::links(), $action, - array('id' => $format['id'], 'group' => 'name_badge')); } $labelFormatList = array_merge($labelFormatList, $nameFormatList);