You are here

function simple_ldap_menu in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 simple_ldap.module \simple_ldap_menu()

Implements hook_menu().

File

./simple_ldap.module, line 10
Main simple_ldap module file.

Code

function simple_ldap_menu() {
  $items = array();
  $items['admin/config/people/simple_ldap'] = array(
    'title' => 'Simple LDAP Configuration',
    'description' => 'LDAP server, authentication parameters, roles, provisioning, etc.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simple_ldap_admin',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'simple_ldap.admin.inc',
  );
  $items['admin/config/people/simple_ldap/server'] = array(
    'title' => 'Server',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -1,
  );
  $items['admin/config/people/simple_ldap/server/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -1,
  );
  $items['admin/config/people/simple_ldap/server/debug'] = array(
    'title' => 'Server Check',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'simple_ldap_server_check',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'simple_ldap.admin.inc',
  );
  return $items;
}