function ldapdata_menu in LDAP integration 5
Same name and namespace in other branches
- 5.2 ldapdata.module \ldapdata_menu()
- 6 ldapdata.module \ldapdata_menu()
Implements hook_menu()
File
- ./
ldapdata.module, line 76
Code
function ldapdata_menu() {
$items = array();
$items[] = array(
'path' => 'admin/settings/ldapdata',
'title' => t('LDAP Data'),
'description' => t('Configure LDAP Data'),
'callback' => 'ldapdata_admin_list',
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapdata/edit',
'title' => t('LDAP DATA'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapdata_admin_edit',
),
'type' => MENU_CALLBACK,
'weight' => 1,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapdata/reset',
'title' => t('LDAP Data'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'ldapdata_admin_edit',
),
'type' => MENU_CALLBACK,
'weight' => 1,
'access' => user_access('administer ldap modules'),
);
$items[] = array(
'path' => 'admin/settings/ldapdata/list',
'title' => t('LDAP Data'),
'callback' => 'ldapdata_admin_list',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 1,
'access' => user_access('administer ldap modules'),
);
return $items;
}