You are here

function ldapgroups_menu in LDAP integration 5

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

Implementation of hook_menu()

File

./ldapgroups.module, line 53

Code

function ldapgroups_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/ldapgroups',
      'title' => t('LDAP Groups'),
      'description' => t('Configure LDAP Groups Settings'),
      'callback' => 'ldapgroups_admin_list',
      'access' => user_access('administer ldap modules'),
    );
    $items[] = array(
      'path' => 'admin/settings/ldapgroups/edit',
      'title' => t('LDAP Groups'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'ldapgroups_admin_edit',
      ),
      'type' => MENU_CALLBACK,
      'weight' => 1,
      'access' => user_access('administer ldap modules'),
    );
    $items[] = array(
      'path' => 'admin/settings/ldapgroups/reset',
      'title' => t('LDAP Groups'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'ldapgroups_admin_edit',
      ),
      'type' => MENU_CALLBACK,
      'weight' => 1,
      'access' => user_access('administer ldap modules'),
    );
  }
  return $items;
}