You are here

function ldapauth_menu in LDAP integration 5.2

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

Implements hook_menu()

File

./ldapauth.module, line 64

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('access administration pages'),
      'description' => t('Configure LDAP settings'),
    );
    $items[] = array(
      'path' => 'admin/settings/ldapauth/list',
      'title' => t('List'),
      'callback' => 'ldapauth_admin_list',
      'access' => user_access('access administration pages'),
      '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('access administration pages'),
    );
    $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('access administration pages'),
    );
    $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('access administration pages'),
    );
    $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('access administration pages'),
    );
    $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('access administration pages'),
    );
    $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('access administration pages'),
    );
  }
  return $items;
}