You are here

function ldap_authorization_menu in Lightweight Directory Access Protocol (LDAP) 6

Same name and namespace in other branches
  1. 8.2 ldap_authorization/ldap_authorization.module \ldap_authorization_menu()
  2. 7.2 ldap_authorization/ldap_authorization.module \ldap_authorization_menu()
  3. 7 ldap_authorization/ldap_authorization.module \ldap_authorization_menu()

Implementation of hook_menu().

File

ldap_authorization/ldap_authorization.module, line 23
This module provides LDAP-based access control (roles)

Code

function ldap_authorization_menu() {
  $items = array();
  $items['admin/settings/ldap/authorization'] = array(
    'title' => 'Authorization',
    'description' => 'Configure LDAP authorization',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'ldap_authorization.admin.inc',
    'page callback' => 'drupal_get_form',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 1,
  );
  $items['admin/settings/ldap/servers/%/authorization'] = array(
    'title' => 'Authorization',
    'description' => 'Change per-server authorization options.',
    'type' => MENU_LOCAL_TASK,
    'file' => 'ldap_authorization.admin.inc',
    'page callback' => 'ldap_authorization_edit_server',
    'access arguments' => array(
      'Add/Edit LDAP Servers',
    ),
    'weight' => 1,
  );
  return $items;
}