function node_export_menu in Node export 6.2
Same name and namespace in other branches
- 6.3 node_export.module \node_export_menu()
- 7.3 node_export.module \node_export_menu()
Implementation of hook_menu().
File
- ./
node_export.module, line 37 - The Node Export module.
Code
function node_export_menu() {
$items['admin/settings/node_export'] = array(
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_export_settings',
),
'title' => 'Node Export',
'description' => 'Configure the settings for Node Export.',
);
$items['node/%node/node_export'] = array(
'access callback' => 'node_export_access',
'access arguments' => array(
1,
),
'page callback' => 'node_export_node_export',
'page arguments' => array(
1,
3,
),
'title' => 'Export',
'weight' => 5,
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/import'] = array(
'access arguments' => array(
'use PHP to import nodes',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_export_import_form',
),
'title' => 'Node Export: Import',
'type' => MENU_NORMAL_ITEM,
'description' => 'Import nodes that were exported with <em>Node Export</em>.',
);
return $items;
}