You are here

function feeds_tamper_ui_menu in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 feeds_tamper_ui/feeds_tamper_ui.module \feeds_tamper_ui_menu()

Implements hook_menu().

File

feeds_tamper_ui/feeds_tamper_ui.module, line 11
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(
      3,
    ),
    'title arguments' => array(
      3,
    ),
    'file' => 'feeds_tamper_ui.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items = array();
  $items['admin/structure/feeds/%feeds_importer/tamper'] = array(
    'title' => 'Tamper',
    'title arguments' => array(),
    'page arguments' => array(
      'feeds_tamper_ui_list_form',
      3,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  ) + $defaults;
  $items['admin/structure/feeds/%feeds_importer/tamper/manage'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/feeds/%feeds_importer/tamper/export'] = array(
    'title' => 'Export',
    'title arguments' => array(),
    'page arguments' => array(
      'feeds_tamper_ui_export_form',
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer feeds_tamper',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  ) + $defaults;
  $items['admin/structure/feeds/%feeds_importer/tamper/add/%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',
      3,
      6,
    ),
  ) + $defaults;
  $items['admin/structure/feeds/%feeds_importer/tamper/%feeds_tamper_plugin_instance/edit'] = array(
    'title callback' => 'feeds_tamper_ui_edit_title',
    'title arguments' => array(
      5,
    ),
    'page arguments' => array(
      'feeds_tamper_ui_edit_plugin_form',
      5,
    ),
    'access arguments' => array(
      NULL,
      5,
    ),
  ) + $defaults;
  $items['admin/structure/feeds/%feeds_importer/tamper/%feeds_tamper_plugin_instance/delete'] = array(
    'title callback' => 'feeds_tamper_ui_delete_title',
    'title arguments' => array(
      5,
    ),
    'page arguments' => array(
      'feeds_tamper_ui_delete_form',
      5,
    ),
    'access arguments' => array(
      NULL,
      5,
    ),
  ) + $defaults;
  return $items;
}