You are here

function ldap_user_menu in Lightweight Directory Access Protocol (LDAP) 8.2

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

Implements hook_menu().

File

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

Code

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

  // $ws_arg_start = count(explode('/', LDAP_USER_WS_USER_PATH));
  // $items[LDAP_USER_WS_USER_PATH] = array(
  //   'title' => 'Webservice Path',
  //   'page callback' => 'ldap_user_ws',
  //   'page arguments' => array($ws_arg_start, $ws_arg_start + 1, $ws_arg_start + 2, $ws_arg_start + 3),
  //   'access arguments' => array('view content'),
  //   'file' => 'ldap_user.ws.inc',
  // );
  return $items;
}