function node_import_menu in Node import 5
Same name and namespace in other branches
- 6 node_import.module \node_import_menu()
Implementation of hook_menu().
File
- ./
node_import.module, line 31 - This modules provides a wizard at "administer >> content >> import" to import a CSV file with nodes.
Code
function node_import_menu($may_cache) {
$links = array();
if ($may_cache) {
$links[] = array(
'path' => 'admin/content/node_import',
'title' => t('Import content'),
'description' => t('Import nodes from a CSV or TSV file.'),
'callback' => 'node_import_page',
'access' => user_access('import nodes'),
);
$links[] = array(
'path' => 'admin/content/node_import/add',
'type' => MENU_DEFAULT_LOCAL_TASK,
'title' => t('New import'),
);
$links[] = array(
'path' => 'admin/content/node_import/settings',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'title' => t('Settings'),
'callback' => 'drupal_get_form',
'callback arguments' => 'node_import_settings',
'access' => user_access('import nodes'),
);
}
return $links;
}