You are here

function ldap_authorization_menu in Lightweight Directory Access Protocol (LDAP) 7

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

Implements hook_menu().

File

ldap_authorization/ldap_authorization.module, line 35
ldap authorization module

Code

function ldap_authorization_menu() {
  $items['admin/config/people/ldap/authorization'] = array(
    'title' => 'Authorization',
    'page callback' => 'ldap_authorizations_admin_index',
    'page arguments' => array(),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_authorization.admin.inc',
    'weight' => 3,
  );
  $items['admin/config/people/ldap/authorization/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/people/ldap/authorization/edit/%'] = array(
    'title' => 'Edit LDAP Authorization Configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ldap_authorization_admin_form',
      6,
      'edit',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_authorization.admin.inc',
  );
  $items['admin/config/people/ldap/authorization/delete/%'] = array(
    'title' => 'Delete LDAP Authorization Configuration',
    'description' => 'Delete an ldap authorization configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ldap_authorization_admin_form',
      6,
      'delete',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_authorization.admin.inc',
  );
  $items['admin/config/people/ldap/authorization/test/%'] = array(
    'title' => 'Test LDAP Authorization Configuration',
    'description' => 'Test an ldap authorization configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ldap_authorization_test_form',
      6,
      'test',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_authorization.admin.test.inc',
  );
  $items['admin/config/people/ldap/authorization/add/%'] = array(
    'title' => 'Add Authorization Configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ldap_authorization_admin_form',
      6,
      'add',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_authorization.admin.inc',
  );
  return $items;
}