You are here

function ldap_authentication_menu in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_authentication/ldap_authentication.module \ldap_authentication_menu()
  2. 7 ldap_authentication/ldap_authentication.module \ldap_authentication_menu()

Implements hook_menu().

File

ldap_authentication/ldap_authentication.module, line 73
This module injects itself into Drupal's Authentication stack.

Code

function ldap_authentication_menu() {
  $items = [];
  $items['user/ldap-profile-update'] = [
    'title' => 'Update Profile',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'ldap_authentication_profile_update_form',
    ],
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'ldap_authentication.pages.inc',
  ];
  $items['admin/config/people/ldap/authentication'] = [
    'title' => 'Authentication',
    'description' => 'Configure LDAP Authentication',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'ldap_authentication_admin_form',
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
    'file' => 'ldap_authentication.admin.inc',
  ];
  return $items;
}