function simplesamlphp_auth_menu in simpleSAMLphp Authentication 7.3
Same name and namespace in other branches
- 6.3 simplesamlphp_auth.module \simplesamlphp_auth_menu()
- 6.2 simplesamlphp_auth.module \simplesamlphp_auth_menu()
- 7 simplesamlphp_auth.module \simplesamlphp_auth_menu()
- 7.2 simplesamlphp_auth.module \simplesamlphp_auth_menu()
Implements hook_menu().
File
- ./
simplesamlphp_auth.module, line 34 - simpleSAMLphp authentication module for Drupal.
Code
function simplesamlphp_auth_menu() {
$login_path = variable_get('simplesamlphp_auth_login_path', 'saml_login');
$items = array();
$items['admin/config/people/simplesamlphp_auth'] = array(
'title' => 'SimpleSAMLphp Auth Settings',
'description' => 'Control the various settings of the simpleSAMLphp authentication module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simplesamlphp_auth_settings_basic',
),
'access arguments' => array(
'administer simpleSAMLphp authentication',
),
'file' => 'simplesamlphp_auth.admin.inc',
'type' => MENU_LOCAL_TASK | MENU_NORMAL_ITEM,
);
$items['admin/config/people/simplesamlphp_auth/basic'] = array(
'title' => 'Basic settings',
'description' => 'Control the various settings of the simpleSAMLphp authentication module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simplesamlphp_auth_settings_basic',
),
'access arguments' => array(
'administer simpleSAMLphp authentication',
),
'file' => 'simplesamlphp_auth.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/people/simplesamlphp_auth/sync'] = array(
'title' => 'User info and syncing',
'description' => 'Control the various settings of the simpleSAMLphp authentication module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simplesamlphp_auth_settings_sync',
),
'access arguments' => array(
'administer simpleSAMLphp authentication',
),
'file' => 'simplesamlphp_auth.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/people/simplesamlphp_auth/local'] = array(
'title' => 'Local authentication',
'description' => 'Configure local only authentication options',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simplesamlphp_auth_settings_local',
),
'access arguments' => array(
'administer simpleSAMLphp authentication',
),
'file' => 'simplesamlphp_auth.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items[$login_path] = array(
'title' => 'Logon to the site',
'description' => 'Provides a site login page',
'page callback' => 'simplesamlphp_auth_loginpage',
'access callback' => '_simplesamlphp_auth_isEnabled',
'file' => 'simplesamlphp_auth.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}