You are here

function ldap_api_menu in Lightweight Directory Access Protocol (LDAP) 6

Implementation of hook_menu().

File

./ldap_api.module, line 56
This this the main LDAP API module.

Code

function ldap_api_menu() {
  $items = array();
  $items['admin/settings/ldap'] = array(
    'title' => 'LDAP',
    'page callback' => 'ldap_api_info',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_api.admin.inc',
  );
  $items['admin/settings/ldap/info'] = array(
    'title' => 'Information',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'ldap_api_info',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ldap_api.admin.inc',
    'weight' => 1,
  );
  $items['admin/settings/ldap/help'] = array(
    'title' => 'Help',
    'type' => MENU_LOCAL_TASK,
    'file' => 'ldap_api.help.inc',
    'page callback' => 'ldap_api_help_index',
    'weight' => 10,
  );
  $items['admin/settings/ldap/servers'] = array(
    'title' => 'Servers',
    'description' => 'Configure LDAP Servers',
    'type' => MENU_LOCAL_TASK,
    'file' => 'ldap_server.admin.inc',
    'page callback' => 'ldap_api_list_servers',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 1,
  );
  $items['admin/settings/ldap/servers/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -1,
  );
  $items['admin/settings/ldap/servers/add'] = array(
    'title' => 'New',
    'description' => 'Add an LDAP Server',
    'type' => MENU_LOCAL_TASK,
    'file' => 'ldap_server.admin.inc',
    'page callback' => 'ldap_api_add_server',
    'access arguments' => array(
      'Add/Edit LDAP Servers',
    ),
    'weight' => 1,
  );
  $items['admin/settings/ldap/servers/%'] = array(
    'title' => 'Server Configuration',
    'description' => 'Edit an LDAP Server',
    'type' => MENU_CALLBACK,
    'file' => 'ldap_server.admin.inc',
    'page callback' => 'ldap_api_edit_server',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'Add/Edit LDAP Servers',
    ),
    'weight' => -1,
  );
  $items['admin/settings/ldap/servers/%/edit'] = array(
    'title' => 'General',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -1,
  );
  $items['admin/settings/ldap/servers/%/delete'] = array(
    'title' => 'Delete',
    'description' => 'Delete an LDAP Server',
    'type' => MENU_CALLBACK,
    'file' => 'ldap_server.admin.inc',
    'page callback' => 'ldap_api_delete_server',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'Add/Edit LDAP Servers',
    ),
    'weight' => -1,
  );
  $items['admin/settings/ldap/servers/%/activate'] = array(
    'title' => 'Activate',
    'description' => 'Activate an LDAP Server',
    'type' => MENU_CALLBACK,
    'file' => 'ldap_server.admin.inc',
    'page callback' => 'ldap_api_activate_server',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      '(De-)Activate LDAP Servers',
    ),
    'weight' => -1,
  );
  $items['admin/settings/ldap/servers/%/deactivate'] = array(
    'title' => 'Deactivate',
    'description' => 'Deactivate an LDAP Server',
    'type' => MENU_CALLBACK,
    'file' => 'ldap_server.admin.inc',
    'page callback' => 'ldap_api_deactivate_server',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      '(De-)Activate LDAP Servers',
    ),
    'weight' => -1,
  );
  return $items;
}