You are here

function simplesamlphp_auth_menu in simpleSAMLphp Authentication 6.3

Same name and namespace in other branches
  1. 6.2 simplesamlphp_auth.module \simplesamlphp_auth_menu()
  2. 7.3 simplesamlphp_auth.module \simplesamlphp_auth_menu()
  3. 7 simplesamlphp_auth.module \simplesamlphp_auth_menu()
  4. 7.2 simplesamlphp_auth.module \simplesamlphp_auth_menu()

Implementation of hook_menu().

1 call to simplesamlphp_auth_menu()
_simplesamlphp_auth_isEnabled in ./simplesamlphp_auth.module
Checks to see if authentication via SimpleSAMLphp should be activated

File

./simplesamlphp_auth.module, line 23
simpleSAMLphp authentication module for Drupal.

Code

function simplesamlphp_auth_menu() {
  $items = array();
  $items['admin/user/simplesamlphp_auth'] = array(
    'title' => t('simpleSAMLphp authentication module settings'),
    'description' => t('Control the various settings of the simpleSAMLphp authentication module'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simplesamlphp_auth_settings',
    ),
    'access arguments' => array(
      'administer simpleSAMLphp authentication',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['saml_login'] = array(
    'title' => t('Logon to the site'),
    'description' => t('Provides a site login page'),
    'page callback' => 'simplesamlphp_auth_loginpage',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}