function ldap_help_menu in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_help/ldap_help.module \ldap_help_menu()
- 7 ldap_help/ldap_help.module \ldap_help_menu()
Implements hook_menu().
File
- ldap_help/
ldap_help.module, line 11 - The ldaphelp module is a module to help admins debug ldap_integration modules.
Code
function ldap_help_menu() {
$items = [];
$items['admin/config/people/ldap/help'] = [
'title' => 'Help',
'type' => MENU_LOCAL_TASK,
'weight' => 9,
'description' => 'Debugging and Configuration Help with LDAP',
'file' => 'ldap_help.resources.inc',
'page callback' => 'ldap_help_main',
'access arguments' => [
'administer site configuration',
],
];
$items['admin/config/people/ldap/help/intro'] = [
'title' => 'Resources',
'type' => MENU_DEFAULT_LOCAL_TASK,
];
$items['admin/config/people/ldap/help/status'] = [
'title' => 'Status',
'description' => 'LDAP status page',
'page callback' => 'ldap_help_status',
'access arguments' => [
'administer site configuration',
],
'file' => 'ldap_help.status.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 4,
];
$items['admin/config/people/ldap/help/watchdog'] = [
'title' => 'Watchdog',
'description' => 'LDAP watchdog logs',
'page callback' => 'ldap_help_watchdog',
'access arguments' => [
'administer site configuration',
],
'file' => 'ldap_help.watchdog.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 5,
];
$items['admin/config/people/ldap/help/issues'] = [
'title' => 'Issue Reporting',
'description' => 'Creating LDAP Issue Queue Items',
'page callback' => 'ldap_help_issues',
'access arguments' => [
'administer site configuration',
],
'file' => 'ldap_help.issues.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 7,
];
$items['admin/config/people/ldap/help/examples'] = [
'title' => 'Sample LDAPs',
'description' => 'Sample LDAPs from Documentation',
'page callback' => 'ldap_help_examples',
'access arguments' => [
'administer site configuration',
],
'file' => 'ldap_help.examples.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 7,
];
return $items;
}