/** * Get action Links. * * @return array * (reference) of action links */ public function &links() { if (!self::$_links) { self::$_links = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit'), 'url' => 'civicrm/acl/entityrole', 'qs' => 'action=update&id=%%id%%', 'title' => ts('Edit ACL Role Assignment')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable ACL Role Assignment')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable ACL Role Assignment')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/acl/entityrole', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete ACL Role Assignment'))); } return self::$_links; }
/** * Get action Links * * @return array (reference) of action links */ function &links() { if (!self::$_links) { self::$_links = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit'), 'url' => 'civicrm/acl/entityrole', 'qs' => 'action=update&id=%%id%%', 'title' => ts('Edit ACL Role Assignment')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_ACL_BAO_EntityRole' . '\',\'' . 'enable-disable' . '\' );"', 'ref' => 'disable-action', 'title' => ts('Disable ACL Role Assignment')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_ACL_BAO_EntityRole' . '\',\'' . 'disable-enable' . '\' );"', 'ref' => 'enable-action', 'title' => ts('Enable ACL Role Assignment')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/acl/entityrole', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete ACL Role Assignment'))); } return self::$_links; }