function user_import_menu in User Import 5.2
Same name and namespace in other branches
- 8 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()
- 7.2 user_import.module \user_import_menu()
Implementation of hook_menu().
File
- ./
user_import.module, line 32 - Import users from a comma separated file (csv).
Code
function user_import_menu($may_cache) {
global $user;
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/user/user_import',
'title' => t('User Imports'),
'callback' => 'user_import_list',
'description' => t('Import users from a comma separated file (csv).'),
'access' => user_access('import users'),
);
$items[] = array(
'path' => 'admin/user/user_import/list',
'title' => t('List Imports'),
'access' => user_access('import users'),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/user/user_import/add',
'title' => t('Import'),
'callback' => 'user_import_preferences',
'access' => user_access('import users'),
'weight' => -5,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'admin/user/user_import/continue',
'title' => t('Continue'),
'callback' => 'user_import_continue',
'access' => user_access('import users'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/user/user_import/import',
'title' => t('Import'),
'callback' => 'user_import_import',
'access' => user_access('import users'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/user/user_import/delete',
'title' => t('Delete Import'),
'callback' => 'user_import_delete',
'access' => user_access('import users'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/user/user_import/configure',
'title' => t('Configure'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'user_import_configure_form',
),
'access' => user_access('import users'),
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'user_import',
'title' => t('Import Users'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'user_import_preconfigured',
),
'access' => user_access('limited user import'),
);
$items[] = array(
'path' => 'user_import/delete',
'title' => t('Remove Info'),
'callback' => 'user_import_limited_delete',
'type' => MENU_CALLBACK,
'access' => user_access('limited user import'),
);
$items[] = array(
'path' => 'user_import/errors',
'title' => t('Import Errors'),
'callback' => 'user_import_limited_errors',
'type' => MENU_CALLBACK,
'access' => user_access('limited user import'),
);
}
return $items;
}