function user_import_menu in User Import 7.2
Same name and namespace in other branches
- 8 user_import.module \user_import_menu()
- 5.2 user_import.module \user_import_menu()
- 5 user_import.module \user_import_menu()
- 6.4 user_import.module \user_import_menu()
- 6.2 user_import.module \user_import_menu()
- 7.3 user_import.module \user_import_menu()
- 7 user_import.module \user_import_menu()
Implementation of hook_menu().
File
- ./
user_import.module, line 67 - 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' => 'drupal_get_form',
'page arguments' => array(
'user_import_confirm_continue',
4,
),
'access arguments' => array(
'import users',
),
'type' => MENU_CALLBACK,
'file' => 'user_import.admin.inc',
);
$items['admin/people/user_import/import/%'] = array(
'title' => 'Import',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_import_confirm_import',
4,
),
'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' => 'drupal_get_form',
'page arguments' => array(
'user_import_confirm_delete',
4,
),
'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['admin/people/user_import/errors/%'] = array(
'title' => 'Import Errors',
'page callback' => 'user_import_limited_errors',
'page arguments' => array(
4,
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'limited user import',
),
);
return $items;
}