You are here

function ldapdata_menu in LDAP integration 5.2

Same name and namespace in other branches
  1. 5 ldapdata.module \ldapdata_menu()
  2. 6 ldapdata.module \ldapdata_menu()

Implements hook_menu()

File

./ldapdata.module, line 74

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 site configuration'),
  );
  $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 site configuration'),
  );
  $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 site configuration'),
  );
  $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 site configuration'),
  );
  return $items;
}