You are here

function ldapgroups_menu in LDAP integration 6

Same name and namespace in other branches
  1. 5.2 ldapgroups.module \ldapgroups_menu()
  2. 5 ldapgroups.module \ldapgroups_menu()

Implementation of hook_menu().

File

./ldapgroups.module, line 31
ldapgroups integrates ldap groups with drupal roles.

Code

function ldapgroups_menu() {
  return array(
    'admin/settings/ldap/ldapgroups' => array(
      'title' => 'Groups',
      'description' => 'Configure LDAP groups to Drupal roles mapping settings.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'ldapgroups_admin_settings',
      ),
      'access arguments' => array(
        'administer ldap modules',
      ),
      'file' => 'ldapgroups.admin.inc',
    ),
    'admin/settings/ldap/ldapgroups/configure' => array(
      'title' => 'Settings',
      'type' => MENU_DEFAULT_LOCAL_TASK,
    ),
    'admin/settings/ldap/ldapgroups/test' => array(
      'title' => 'Test Group Settings',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'ldapgroups_user_test',
      ),
      'access arguments' => array(
        'administer ldap modules',
      ),
      'file' => 'ldapgroups.admin.inc',
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    ),
    'admin/settings/ldap/ldapgroups/edit' => array(
      'title' => 'Groups',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'ldapgroups_admin_edit',
        4,
        5,
      ),
      'type' => MENU_CALLBACK,
      'access arguments' => array(
        'administer ldap modules',
      ),
      'file' => 'ldapgroups.admin.inc',
    ),
    'admin/settings/ldap/ldapgroups/reset' => array(
      'title' => 'Groups',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'ldapgroups_admin_edit',
        4,
        5,
      ),
      'type' => MENU_CALLBACK,
      'weight' => 1,
      'access arguments' => array(
        'administer ldap modules',
      ),
      'file' => 'ldapgroups.admin.inc',
    ),
  );
}