You are here

function shib_auth_menu in Shibboleth Authentication 7.4

Same name and namespace in other branches
  1. 5.3 shib_auth.module \shib_auth_menu()
  2. 5.2 shib_auth.module \shib_auth_menu()
  3. 6.4 shib_auth.module \shib_auth_menu()
  4. 6 shib_auth.module \shib_auth_menu()
  5. 6.2 shib_auth.module \shib_auth_menu()
  6. 6.3 shib_auth.module \shib_auth_menu()

Implements hook_menu().

File

./shib_auth.module, line 1013
Drupal Shibboleth authentication module.

Code

function shib_auth_menu() {
  $items = array();
  $items['admin/config/people/shib_auth'] = array(
    'title' => 'Shibboleth settings',
    'description' => 'Settings of the Shibboleth authentication module',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shib_auth_admin_general',
    ),
    'access arguments' => array(
      'administer shibboleth authentication',
    ),
    'file' => 'shib_auth_forms.inc',
  );
  $items['admin/config/people/shib_auth/general'] = array(
    'title' => 'General settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access arguments' => array(
      'administer shibboleth authentication',
    ),
    'weight' => -10,
    'file' => 'shib_auth_forms.inc',
  );
  $items['shib_auth/get_custom_data'] = array(
    'title' => 'Customize drupal user attributes',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shib_auth_custom_data',
    ),
    'access callback' => 'access_shib_login',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
    'file' => 'shib_auth_forms.inc',
  );
  $items['shib_login/%'] = array(
    'page callback' => 'shib_auth_login',
    'type' => MENU_CALLBACK,
    'access callback' => 'access_shib_login',
    'file' => 'shib_auth_forms.inc',
  );
  $items['shib_link'] = array(
    'page callback' => 'shib_auth_account_link',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'access content',
    ),
    'file' => 'shib_auth_forms.inc',
  );
  $items['admin/config/people/shib_auth/advanced'] = array(
    'title' => 'Advanced settings',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shib_auth_admin_advanced',
    ),
    'access arguments' => array(
      'administer shibboleth authentication',
    ),
    'weight' => -6,
    'file' => 'shib_auth_forms.inc',
  );

  /******* ROLE-RELATED MENU ITEMS ********/
  $items['admin/config/people/shib_auth/rules'] = array(
    'title' => 'Shibboleth group rules',
    'description' => '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,
    'file' => 'shib_auth_roles_forms.inc',
  );
  $items['admin/config/people/shib_auth/new'] = array(
    'title' => 'Add new rule',
    'description' => '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_NORMAL_ITEM,
    'weight' => -7,
    'file' => 'shib_auth_roles_forms.inc',
  );
  $items['admin/config/people/shib_auth/delete/%'] = array(
    'title' => 'Delete rule',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_shib_auth_rule_delete_confirm_form',
      5,
    ),
    'access arguments' => array(
      'administer permissions',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'shib_auth_roles_forms.inc',
  );
  $items['admin/config/people/shib_auth/edit/%'] = array(
    'title' => 'Edit rule',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shib_auth_edit_rule',
      5,
    ),
    'access arguments' => array(
      'administer permissions',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'shib_auth_roles_forms.inc',
  );
  $items['admin/config/people/shib_auth/clone/%'] = array(
    'title' => 'Clone rule',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_shib_auth_rule_clone_confirm_form',
      5,
    ),
    'access arguments' => array(
      'administer permissions',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'shib_auth_roles_forms.inc',
  );
  return $items;
}