function menu_import_menu in Menu Export/Import 7
Same name and namespace in other branches
- 6 menu_import.module \menu_import_menu()
Implementation of hook_menu().
File
- ./
menu_import.module, line 29 - Module's main file, general definitions and hooks.
Code
function menu_import_menu() {
$items = array();
$items['admin/structure/menu/import'] = array(
'title' => 'Import menu',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'menu_import_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'access arguments' => array(
'import or export menu',
),
'file' => 'includes/admin.inc',
);
$items['admin/structure/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 or export menu',
),
'file' => 'includes/export.inc',
);
return $items;
}