You are here

function advuser_menu in Advanced User 5

Same name and namespace in other branches
  1. 5.2 advuser.module \advuser_menu()
  2. 6.3 advuser.module \advuser_menu()
  3. 6.2 advuser.module \advuser_menu()
  4. 7.4 advuser.module \advuser_menu()
  5. 7.3 advuser.module \advuser_menu()

Implementation of hook_menu().

File

./advuser.module, line 25

Code

function advuser_menu($may_cache) {

  // code which should run exactly once per page view
  if (!$may_cache) {
    drupal_add_css(drupal_get_path('module', 'advuser') . '/advuser.css');
  }
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/advuser',
      'title' => t('Advanced User'),
      'description' => t('Advanced User Settings'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'advuser_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'admin/user/advuser',
      'title' => t('Advanced managment'),
      'callback' => 'advuser_admin_users',
      'type' => MENU_NORMAL_ITEM,
      //            'weight' => 7,
      'access' => user_access('administer users'),
    );
  }
  return $items;
}