function shib_auth_menu in Shibboleth Authentication 6.3
Same name and namespace in other branches
- 5.3 shib_auth.module \shib_auth_menu()
- 5.2 shib_auth.module \shib_auth_menu()
- 6.4 shib_auth.module \shib_auth_menu()
- 6 shib_auth.module \shib_auth_menu()
- 6.2 shib_auth.module \shib_auth_menu()
- 7.4 shib_auth.module \shib_auth_menu()
Generate the menu element to access the Shibboleth authentication module's administration page @returns HTML text of the administer menu element
File
- ./
shib_auth.module, line 485 - This is a Shibboleth authentication module.
Code
function shib_auth_menu() {
$items = array();
$items['admin/user/shib_auth'] = array(
'title' => t('Shibboleth settings'),
'description' => t('Settings of the Shibboleth authentication module'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'shib_auth_admin',
),
'access arguments' => array(
'administer shibboleth authentication',
),
);
$items['admin/user/shib_auth/general'] = array(
'title' => t('General settings'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'access arguments' => array(
'administer shibboleth authentication',
),
'weight' => -10,
);
$items['admin/user/shib_auth/rules'] = array(
'title' => t('Shibboleth group rules'),
'description' => t('Administer attribute-based role assignment'),
'page callback' => '_shib_auth_list_rules',
'page arguments' => array(
'shib_auth_list_rules',
),
'access arguments' => array(
'administer permissions',
),
'type' => MENU_LOCAL_TASK,
'weight' => -8,
);
$items['admin/user/shib_auth/new'] = array(
'title' => t('Add new rule'),
'description' => t('Add new attribute-based role assignment rule'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'shib_auth_new_rule',
),
'access arguments' => array(
'administer permissions',
),
'type' => MENU_LOCAL_TASK,
'weight' => -7,
);
$items['admin/user/shib_auth/delete/%'] = array(
'title' => 'Delete rule',
'page callback' => '_shib_auth_delete_rule',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer permissions',
),
'type' => MENU_CALLBACK,
);
$items['admin/user/shib_auth/edit/%'] = array(
'title' => 'Edit rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'shib_auth_edit_rule',
4,
),
'access arguments' => array(
'administer permissions',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/user/shib_auth/clone/%'] = array(
'title' => 'Edit rule',
'page callback' => '_shib_auth_clone_rule',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer permissions',
),
'type' => MENU_CALLBACK,
);
$items['shib_auth/get_custom_mail'] = array(
'title' => t('Please enter your email address'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'shib_auth_custom_email',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['shib_login/%'] = array(
'page callback' => 'shib_login',
'type' => MENU_CALLBACK,
'access callback' => 'access_shib_login',
);
return $items;
}