You are here

function user_import_menu in User Import 7

Same name and namespace in other branches
  1. 8 user_import.module \user_import_menu()
  2. 5.2 user_import.module \user_import_menu()
  3. 5 user_import.module \user_import_menu()
  4. 6.4 user_import.module \user_import_menu()
  5. 6.2 user_import.module \user_import_menu()
  6. 7.3 user_import.module \user_import_menu()
  7. 7.2 user_import.module \user_import_menu()

Implementation of hook_menu().

File

./user_import.module, line 63
Import or update users with data from a comma separated file (csv).

Code

function user_import_menu() {
  $items['admin/people/user_import'] = array(
    'title' => 'Import',
    'description' => 'Import or update users from a comma separated file (csv).',
    'page callback' => 'user_import_list',
    'access arguments' => array(
      'import users',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'user_import.admin.inc',
  );
  $items['admin/people/user_import/list'] = array(
    'title' => 'List Imports',
    'access arguments' => array(
      'import users',
    ),
    'weight' => -10,
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'user_import.admin.inc',
  );
  $items['admin/people/user_import/add'] = array(
    'title' => 'New Import',
    'page callback' => 'user_import_preferences',
    'access arguments' => array(
      'import users',
    ),
    'weight' => -5,
    'type' => MENU_LOCAL_TASK,
    'file' => 'user_import.admin.inc',
  );
  $items['admin/people/user_import/continue'] = array(
    'title' => 'Continue',
    'page callback' => 'user_import_continue',
    'access arguments' => array(
      'import users',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'user_import.admin.inc',
  );
  $items['admin/people/user_import/import'] = array(
    'title' => 'Import',
    'page callback' => 'user_import_import',
    'access arguments' => array(
      'import users',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'user_import.admin.inc',
  );
  $items['admin/people/user_import/delete'] = array(
    'title' => 'Delete Import',
    'page callback' => 'user_import_delete',
    'access arguments' => array(
      'import users',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'user_import.admin.inc',
  );
  $items['admin/people/user_import/configure'] = array(
    'title' => 'Configure',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'user_import_configure_form',
    ),
    'access arguments' => array(
      'import users',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'user_import.admin.inc',
  );
  $items['user_import/delete'] = array(
    'title' => 'Remove Info',
    'page callback' => 'user_import_limited_delete',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'limited user import',
    ),
  );
  $items['user_import/errors'] = array(
    'title' => 'Import Errors',
    'page callback' => 'user_import_limited_errors',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'limited user import',
    ),
  );
  return $items;
}