You are here

function ldap_user_menu in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_user/ldap_user.module \ldap_user_menu()

Implements hook_menu().

File

ldap_user/ldap_user.module, line 74
Module for the LDAP User Entity.

Code

function ldap_user_menu() {
  $items = [];
  $items['admin/config/people/ldap/user'] = [
    'title' => '3. User',
    'description' => 'Settings related to user provisioning and data synching between ldap and drupal users.',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'ldap_user_admin_form',
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'ldap_user.admin.inc',
  ];
  $items[LDAP_USER_TEST_FORM_PATH] = [
    'title' => 'Test LDAP User Functionality for a given user.',
    'description' => '',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'ldap_user_test_form',
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'ldap_user.test_form.inc',
    'type' => MENU_LOCAL_ACTION,
  ];
  return $items;
}