function export_menu in Node export 6
Same name and namespace in other branches
- 5.2 export.module \export_menu()
- 5 export.module \export_menu()
Implementation of hook_menu().
File
- ./
export.module, line 26
Code
function export_menu() {
$items['admin/settings/export'] = array(
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'export_settings',
),
'title' => t('Export module'),
'file' => 'export.pages.inc',
'description' => t('Allows users to export (copy then edit) an existing node.'),
);
$items['node/%node/export'] = array(
'access callback' => 'export_access',
'access arguments' => array(
1,
),
'page callback' => 'export_node_export',
'page arguments' => array(
1,
),
'title' => t('Export'),
'weight' => 5,
'file' => 'export.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/import'] = array(
'access arguments' => array(
'import nodes',
),
'page callback' => 'export_node_import',
'title' => t('Import'),
'file' => 'export.pages.inc',
'type' => MENU_NORMAL_ITEM,
'description' => t('Allows users to import a node from another site.'),
);
return $items;
}