You are here

function feeds_ui_menu in Feeds 8.2

Same name and namespace in other branches
  1. 6 feeds_ui/feeds_ui.module \feeds_ui_menu()
  2. 7.2 feeds_ui/feeds_ui.module \feeds_ui_menu()
  3. 7 feeds_ui/feeds_ui.module \feeds_ui_menu()

Implements hook_menu().

File

feeds_ui/feeds_ui.module, line 20

Code

function feeds_ui_menu() {
  $items = array();
  $items['admin/structure/feeds'] = array(
    'title' => 'Feeds importers',
    'description' => 'Configure one or more Feeds importers to aggregate RSS and Atom feeds, import CSV files or more.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_overview_form',
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
  );
  $items['admin/structure/feeds/create'] = array(
    'title' => 'Add importer',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_create_form',
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/structure/feeds/%feeds_importer'] = array(
    'title callback' => 'feeds_ui_importer_title',
    'title arguments' => array(
      3,
    ),
    'page callback' => 'feeds_ui_edit_page',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
  );
  $items['admin/structure/feeds/%feeds_importer/edit'] = array(
    'title' => 'Edit',
    'page callback' => 'feeds_ui_edit_page',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/structure/feeds/%feeds_importer/clone'] = array(
    'title' => 'Clone',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_create_form',
      3,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['admin/structure/feeds/%feeds_importer/delete'] = array(
    'title' => 'Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_delete_form',
      3,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  return $items;
}