You are here

function feeds_ui_menu in Feeds 6

Same name and namespace in other branches
  1. 8.2 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()

Implementation of hook_menu().

File

feeds_ui/feeds_ui.module, line 23

Code

function feeds_ui_menu() {
  $items = array();
  $items['admin/build/feeds'] = array(
    'title' => 'Feed importers',
    'description' => 'Configure feeds to import or 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/build/feeds/list'] = array(
    'title' => t('List'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/build/feeds/create'] = array(
    'title' => t('New 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_TASK,
    'weight' => 1,
  );
  $items['admin/build/feeds/clone/%feeds_importer'] = array(
    'title callback' => 'feed_ui_clone_title',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_create_form',
      4,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/feeds/export/%feeds_importer'] = array(
    'title callback' => 'feed_ui_title',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_export_form',
      4,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/feeds/edit/%feeds_importer'] = array(
    'title callback' => 'feed_ui_title',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'feeds_ui_edit_page',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/feeds/delete/%feeds_importer'] = array(
    'title' => t('Delete configuration'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feeds_ui_delete_form',
      4,
    ),
    'access arguments' => array(
      'administer feeds',
    ),
    'file' => 'feeds_ui.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}