You are here

function ldaphelp_menu in LDAP integration 6

Implementation of hook_menu().

File

ldaphelp/ldaphelp.module, line 59
The ldaphelp module is a module to help admins debug ldap_integration modules.

Code

function ldaphelp_menu() {
  $items = array();
  $items['admin/settings/ldap/help'] = array(
    'title' => 'LDAP Help',
    'description' => 'Debugging and Configuration Help with LDAP',
    'page callback' => 'ldaphelp_main',
    'access arguments' => array(
      'administer ldap modules',
    ),
  );
  $items['admin/settings/ldap/help/resources'] = array(
    'title' => 'Resources',
    'description' => 'Some help resources for LDAP modules',
    'page callback' => 'ldaphelp_main',
    'access arguments' => array(
      'administer ldap modules',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/settings/ldap/help/status'] = array(
    'title' => 'Status',
    'description' => 'LDAP status page',
    'page callback' => 'ldaphelp_status',
    'access arguments' => array(
      'administer ldap modules',
    ),
    'file' => 'ldaphelp_status.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  $items['admin/settings/ldap/help/watchdog'] = array(
    'title' => 'Watchdog',
    'description' => 'LDAP watchdog logs',
    'page callback' => 'ldaphelp_watchdog_list',
    'access arguments' => array(
      'administer ldap modules',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  $items['admin/settings/ldap/help/addcommon'] = array(
    'title' => 'Common LDAPs',
    'description' => 'Add a new LDAP starting with common defaults such as Active Directory defaults.',
    'page callback' => 'ldaphelp_addcommon',
    'access arguments' => array(
      'administer ldap modules',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 7,
  );
  $items['admin/settings/ldap/help/wizard'] = array(
    'title' => 'Wizard',
    'description' => 'A multi step form to help figure out LDAP server configuration.',
    'access arguments' => array(
      'administer ldap modules',
    ),
    'file' => 'ldaphelp_wizard.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 13,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ldaphelp_wizard_form',
    ),
  );
  $items['admin/settings/ldap/help/users'] = array(
    'title' => 'User Info',
    'description' => 'Some ways to list LDAP user information.',
    'access arguments' => array(
      'administer ldap modules',
    ),
    //    'file' => 'ldaphelp_wizard.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ldaphelp_users',
    ),
  );
  $items['admin/settings/ldap/help/users/list'] = array(
    'title' => 'User Info',
    'description' => 'Some ways to list LDAP user information.',
    'access arguments' => array(
      'administer ldap modules',
    ),
    //    'file' => 'ldaphelp_wizard.inc',
    //    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
    'page callback' => 'ldaphelp_users_list',
  );
  return $items;
}