You are here

function advuser_menu in Advanced User 6.2

Same name and namespace in other branches
  1. 5.2 advuser.module \advuser_menu()
  2. 5 advuser.module \advuser_menu()
  3. 6.3 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() {
  $items['admin/settings/advuser'] = array(
    'title' => t('Advanced User'),
    'description' => t('Advanced User Settings'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'advuser_settings',
    ),
    'access arguments' => array(
      'administer advuser',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'advuser_filters.inc',
  );
  $items['admin/user/user/advuser'] = array(
    'title' => t('Advanced'),
    'description' => t('List, add, edit and email users.'),
    'page callback' => 'advuser_admin',
    'page arguments' => array(
      'list',
    ),
    'access callback' => 'advuser_admin_access',
    'access arguments' => array(
      'access advuser',
      'administer users',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'advuser_filters.inc',
  );
  return $items;
}