/** * 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/admin/resource/config_set', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Resource Configuration Set')), CRM_Core_Action::BROWSE => array('name' => ts('Edit Options'), 'url' => 'civicrm/admin/resource/config_set/config_option', 'qs' => 'sid=%%id%%&reset=1', 'title' => ts('Edit Resource Configurtation Options')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Booking_BAO_ResourceConfigSet' . '\',\'' . 'enable-disable' . '\' );"', 'ref' => 'disable-action', 'title' => ts('Disable Resource Configuration Set')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Booking_BAO_ResourceConfigSet' . '\',\'' . 'disable-enable' . '\' );"', 'ref' => 'enable-action', 'title' => ts('Enable Resource Configuration Set')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/resource/config_set', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Resource Configuration Set'))); } 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/admin/resource/config_set', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Resource Configuration Set')), CRM_Core_Action::BROWSE => array('name' => ts('Edit Options'), 'url' => 'civicrm/admin/resource/config_set/config_option', 'qs' => 'sid=%%id%%&reset=1', 'title' => ts('Edit Resource Configurtation Options')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Resource Configuration Set')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Resource Configuration Set')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/resource/config_set', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Resource Configuration Set'))); } return self::$_links; }