function ldapauth_menu in LDAP integration 5
Same name and namespace in other branches
- 5.2 ldapauth.module \ldapauth_menu()
- 6 ldapauth.module \ldapauth_menu()
Implements hook_menu()
File
- ./
ldapauth.module, line 70
Code
function ldapauth_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/ldapauth',
'title' => t('LDAP Integration'),
'callback' => 'ldapauth_admin_list',
'access' => user_access('administer ldap modules'),
'description' => t('Configure LDAP settings'),
);
$items[] = array(
'path' => 'admin/settings/ldapauth/list',
'title' => t('List'),
'callback' => 'ldapauth_admin_list',
'access' => user_access('administer ldap modules'),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/settings/ldapauth/add',
'title' => t('Configure LDAP Server'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapauth_admin_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapauth/options',
'title' => t('System Wide Options'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapauth_admin_options',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapauth/edit',
'title' => t('Configure LDAP Server'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapauth_admin_form',
),
'type' => MENU_CALLBACK,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapauth/delete',
'title' => t('Delete LDAP Server'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapauth_admin_delete',
),
'type' => MENU_CALLBACK,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapauth/activate',
'title' => t('Activate LDAP Source'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapauth_admin_activate',
),
'type' => MENU_CALLBACK,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapauth/deactivate',
'title' => t('De-Activate LDAP Source'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapauth_admin_deactivate',
),
'type' => MENU_CALLBACK,
'access' => user_access('administer ldap modules'),
);
}
return $items;
}