/** * Setup admin menus for Shibboleth options. * * @action: admin_menu **/ function shibboleth_admin_panels() { // global options page if (function_exists('is_site_admin')) { $hookname = add_submenu_page('settings.php', __('Shibboleth Options', 'shibboleth'), __('Shibboleth', 'shibboleth'), 8, 'shibboleth-options', 'shibboleth_options_page'); } else { $hookname = add_options_page(__('Shibboleth options', 'shibboleth'), __('Shibboleth', 'shibboleth'), 8, 'shibboleth-options', 'shibboleth_options_page'); } add_contextual_help($hookname, shibboleth_help_text()); }
/** * Setup multisite admin menus for Shibboleth options. * * @action: network_admin_menu **/ function shibboleth_network_admin_panels() { $hookname = add_submenu_page('settings.php', __('Shibboleth options', 'shibboleth'), __('Shibboleth', 'shibboleth'), 'manage_network_options', 'shibboleth-options', 'shibboleth_options_page'); add_contextual_help($hookname, shibboleth_help_text()); }