You are here

function feedapi_menu in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi.module \feedapi_menu()

Implementation of hook_menu().

File

./feedapi.module, line 54
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function feedapi_menu() {
  $items = array();
  $items['admin/content/feed'] = array(
    'title' => 'Feeds',
    'description' => 'Overview which content your site aggregates from other sites and see detailed statistics about the feeds.',
    'page callback' => 'feedapi_admin_overview',
    'access arguments' => array(
      'administer feedapi',
    ),
    'file' => 'feedapi.admin.inc',
  );
  $items['admin/content/feed/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access arguments' => array(
      'administer feedapi',
    ),
    'weight' => -15,
  );
  $items['admin/content/feed/import_opml'] = array(
    'title' => 'Import OPML',
    'access arguments' => array(
      'administer feedapi',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feedapi_import_opml',
    ),
    'file' => 'feedapi.opml.inc',
  );
  $items['admin/content/feed/export_opml'] = array(
    'title' => 'Export all feeds as OPML',
    'access arguments' => array(
      'administer feedapi',
    ),
    'page callback' => 'feedapi_export_opml',
    'file' => 'feedapi.opml.inc',
  );
  $items['admin/settings/feedapi'] = array(
    'title' => 'FeedAPI',
    'description' => 'Configure advanced options for FeedAPI module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'feedapi_admin_settings',
    ),
    'access arguments' => array(
      'administer feedapi',
    ),
    'file' => 'feedapi.admin.inc',
  );
  $items['node/%node/refresh'] = array(
    'title' => 'Refresh',
    'page callback' => 'feedapi_refresh',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => '_feedapi_op_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['node/%node/purge'] = array(
    'title' => 'Remove items',
    'page callback' => 'feedapi_invoke',
    'page arguments' => array(
      "purge",
      1,
      'items',
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => '_feedapi_op_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}