function data_ui_menu in Data 6
Same name and namespace in other branches
- 7 data_ui/data_ui.module \data_ui_menu()
Implementation of hook_menu()
File
- data_ui/
data_ui.module, line 32 - Hooks and API functions for Data UI module.
Code
function data_ui_menu() {
$items = array();
if (module_exists('views')) {
$items['admin/content/data'] = array(
'title' => 'Data tables',
'description' => 'View data tables.',
'page callback' => 'data_ui_view',
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
);
}
$items['admin/build/data'] = array(
'title' => 'Data tables',
'description' => 'Create, modify and delete data tables.',
'page callback' => 'data_ui_manage',
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
);
$items['admin/build/data/overview'] = array(
'title' => 'Overview',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/build/data/compare'] = array(
'title' => 'Compare schemas',
'description' => 'Administer data tables.',
'page callback' => 'data_ui_compare',
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/build/data/compare/%data_ui_table'] = array(
'title' => 'Adjust schema',
'description' => 'Administer data tables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_adjust_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/build/data/adopt'] = array(
'title' => 'Adopt tables',
'description' => 'Adopt data tables that aren\'t claimed by any module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_adopt_form',
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/build/data/create'] = array(
'title' => 'Create a table',
'description' => 'Create a data table.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_create_form',
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/data/drop/%data_ui_table'] = array(
'title' => 'Drop table',
'description' => 'Drop a data table.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_drop_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/data/edit/%data_ui_table'] = array(
'title' => 'Data table',
'description' => 'Administer data tables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_edit_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/data/edit/%data_ui_table/edit'] = array(
'title' => 'Edit schema',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/build/data/edit/%data_ui_table/title'] = array(
'title' => 'Edit title',
'description' => 'Edit the title of the table.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_edit_title_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_LOCAL_TASK,
'weight' => -9,
);
if (module_exists('views')) {
$items['admin/build/data/edit/%data_ui_table/views'] = array(
'title' => 'Configure views',
'description' => 'Administer data tables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_views_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_LOCAL_TASK,
);
}
if (module_exists('devel')) {
$items['admin/build/data/edit/%data_ui_table/view-schema'] = array(
'title' => 'Devel load',
'description' => 'Administer data tables.',
'page callback' => 'data_ui_view_schema',
'page arguments' => array(
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
}
$items['admin/build/data/edit/%data_ui_table/join'] = array(
'title' => 'Join tables',
'description' => 'Administer data tables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_join_form',
4,
6,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/data/revert/%data_ui_table'] = array(
'title' => 'Revert data table',
'description' => 'Administer data tables.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_revert_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/data/export/%data_ui_table'] = array(
'title' => 'Data table',
'description' => 'Export data table.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'data_ui_export_form',
4,
),
'file' => 'data_ui.admin.inc',
'access arguments' => array(
'administer data tables',
),
'type' => MENU_CALLBACK,
);
return $items;
}