function migrate_menu in Migrate 6
Same name and namespace in other branches
- 6.2 migrate_ui/migrate_ui.module \migrate_menu()
Implementation of hook_menu().
File
- ./
migrate.module, line 1140 - This module provides tools at "administer >> content >> migrate" for analyzing data from various sources and importing them into Drupal tables.
Code
function migrate_menu() {
$items = array();
$items['admin/content/migrate'] = array(
'title' => 'Migrate',
'description' => 'Monitor and control the creation of Drupal content from source data',
'page callback' => 'migrate_dashboard',
'access arguments' => array(
MIGRATE_ACCESS_BASIC,
),
'file' => 'migrate_pages.inc',
);
$items['admin/content/migrate/dashboard'] = array(
'title' => 'Dashboard',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/content/migrate/settings'] = array(
'title' => 'Settings',
'description' => 'Migrate module settings',
'weight' => 5,
'page callback' => 'migrate_settings',
'access arguments' => array(
MIGRATE_ACCESS_ADVANCED,
),
'file' => 'migrate_pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/migrate/content_set/%'] = array(
'title' => 'Content set',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'migrate_content_set_mappings',
4,
),
'access arguments' => array(
MIGRATE_ACCESS_ADVANCED,
),
// 'type' => MENU_CALLBACK,
'file' => 'migrate_pages.inc',
);
$items['admin/content/migrate/content_set/%/edit'] = array(
'title' => 'Edit',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/content/migrate/content_set/%/export'] = array(
'title' => 'Export',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'migrate_export_content_set',
4,
),
'access arguments' => array(
MIGRATE_ACCESS_ADVANCED,
),
'type' => MENU_LOCAL_TASK,
'file' => 'migrate_pages.inc',
);
$items['migrate/xlat/%'] = array(
'page callback' => 'migrate_xlat',
'access arguments' => array(
'access content',
),
'page arguments' => array(
2,
),
'type' => MENU_CALLBACK,
);
return $items;
}