You are here

function simple_ldap_user_menu in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 simple_ldap_user/simple_ldap_user.module \simple_ldap_user_menu()

Implements hook_menu().

File

simple_ldap_user/simple_ldap_user.module, line 22
Main simple_ldap_user module file.

Code

function simple_ldap_user_menu() {
  $items = array();
  $items['admin/config/people/simple_ldap/user'] = array(
    'title' => 'Users',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simple_ldap_user_admin',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'simple_ldap_user.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/people/simple_ldap/profile'] = array(
    'title' => 'Profile',
    'description' => 'Map user profile fields with LDAP user object',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simple_ldap_user_profile_map_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'simple_ldap_user.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/people/simple_ldap_user_import'] = array(
    'title' => 'Import from LDAP',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simple_ldap_user_import',
    ),
    'access arguments' => array(
      'administer users',
    ),
    'file' => 'simple_ldap_user.admin.inc',
    'type' => MENU_LOCAL_ACTION,
  );
  return $items;
}