function menu_import_menu in Menu Export/Import 6
Same name and namespace in other branches
- 7 menu_import.module \menu_import_menu()
Implementation of hook_menu().
File
- ./
menu_import.module, line 35 - Module's main file.
Code
function menu_import_menu() {
$items = array();
$items['admin/build/menu/import'] = array(
'title' => 'Import menu',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'menu_import_preview_import',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'access arguments' => array(
'import menu from file',
),
);
$items['admin/build/menu/export'] = array(
'title' => 'Export menu',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'menu_import_export_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 11,
'access arguments' => array(
'import menu from file',
),
// @todo: use a more generic permission.
'file' => 'includes/export.inc',
);
return $items;
}