function feeds_tamper_ui_menu in Feeds Tamper 6
Same name and namespace in other branches
- 7 feeds_tamper_ui/feeds_tamper_ui.module \feeds_tamper_ui_menu()
Implementation of hook_menu().
File
- feeds_tamper_ui/
feeds_tamper_ui.module, line 35 - Feeds Tamper UI - Defines the user interface for Feeds Tamper.
Code
function feeds_tamper_ui_menu() {
$defaults = array(
'page callback' => 'drupal_get_form',
'access callback' => 'feeds_tamper_access',
'access arguments' => array(
5,
),
'file' => 'feeds_tamper_ui.admin.inc',
'title arguments' => array(
5,
),
'type' => MENU_CALLBACK,
);
$items = array();
$items[FEEDS_TAMPER_UI_BASE . '/list/%feeds_importer'] = array(
'title callback' => 'feeds_tamper_ui_main_title',
'page arguments' => array(
'feeds_tamper_ui_list_form',
5,
),
) + $defaults;
$items[FEEDS_TAMPER_UI_BASE . '/add/%feeds_importer/%feeds_tamper_ui_source'] = array(
'title callback' => 'feeds_tamper_ui_add_title',
'title arguments' => array(
6,
),
'page arguments' => array(
'feeds_tamper_ui_add_plugin_form',
5,
6,
),
) + $defaults;
$items[FEEDS_TAMPER_UI_BASE . '/edit/%feeds_tamper_plugin_instance'] = array(
'title callback' => 'feeds_tamper_ui_edit_title',
'page arguments' => array(
'feeds_tamper_ui_edit_plugin_form',
5,
),
'access arguments' => array(
NULL,
5,
),
) + $defaults;
$items[FEEDS_TAMPER_UI_BASE . '/delete/%feeds_tamper_plugin_instance'] = array(
'title callback' => 'feeds_tamper_ui_delete_title',
'page arguments' => array(
'feeds_tamper_ui_delete_form',
5,
),
'access arguments' => array(
NULL,
5,
),
) + $defaults;
$items['feeds_tamper/js'] = array(
'page callback' => 'feeds_tamper_ui_js',
'access callback' => TRUE,
'file' => 'feeds_tamper_ui.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}