array( 'name' => ts('Options'), 'url' => 'civicrm/admin/optionValue', 'qs' => 'reset=1&action=browse&gid=%%id%%', 'title' => ts('View and Edit Options'), ), CRM_Core_Action::UPDATE => array( 'name' => ts('Edit Group'), 'url' => 'civicrm/admin/optionGroup', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Option'), ), CRM_Core_Action::DISABLE => array( 'name' => ts('Disable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Core_BAO_OptionGroup' . '\',\'' . 'enable-disable' . '\' );"', 'ref' => 'disable-action', 'title' => ts('Disable Option'), ), CRM_Core_Action::ENABLE => array( 'name' => ts('Enable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Core_BAO_OptionGroup' . '\',\'' . 'disable-enable' . '\' );"', 'ref' => 'enable-action', 'title' => ts('Enable Option'), ), CRM_Core_Action::DELETE => array( 'name' => ts('Delete'), 'url' => 'civicrm/admin/optionGroup', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Option'), ), ); } return self::$_links; } /** * Get name of edit form * * @return string Classname of edit form. */ function editForm() { return 'CRM_Admin_Form_OptionGroup'; } /** * Get edit form name * * @return string name of this page. */ function editName() { return 'Options'; } /** * Get user context. * * @return string user context. */ function userContext($mode = NULL) { return 'civicrm/admin/optionGroup'; } }