You are here

function advuser_menu in Advanced User 5.2

Same name and namespace in other branches
  1. 5 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 30
Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.

Code

function advuser_menu($may_cache) {

  // Include filters
  include_once drupal_get_path('module', 'advuser') . '/advuser_filters.inc';
  $admin_access = user_access('administer advuser');
  $access_access = user_access('access advuser');
  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' => $admin_access,
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'admin/user/user/advuser',
      'title' => t('Advanced'),
      'description' => t('List, add, edit and email users.'),
      'callback' => 'advuser_admin',
      'callback arguments' => array(
        'list',
      ),
      'access' => $access_access,
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}