You are here

function aggregator_page_source in Drupal 7

Same name and namespace in other branches
  1. 4 modules/aggregator.module \aggregator_page_source()
  2. 5 modules/aggregator/aggregator.module \aggregator_page_source()
  3. 6 modules/aggregator/aggregator.pages.inc \aggregator_page_source()

Page callback: Displays all the items captured from the particular feed.

Parameters

$feed: The feed for which to display all items.

Return value

The rendered list of items for a feed.

See also

aggregator_menu()

1 call to aggregator_page_source()
aggregator_page_source_form in modules/aggregator/aggregator.pages.inc
Page callback: Displays a form with all items captured from a feed.
1 string reference to 'aggregator_page_source'
aggregator_menu in modules/aggregator/aggregator.module
Implements hook_menu().

File

modules/aggregator/aggregator.pages.inc, line 33
User page callbacks for the Aggregator module.

Code

function aggregator_page_source($feed) {
  drupal_set_title($feed->title);
  $feed_source = theme('aggregator_feed_source', array(
    'feed' => $feed,
  ));

  // It is safe to include the fid in the query because it's loaded from the
  // database by aggregator_feed_load.
  $items = aggregator_feed_items_load('source', $feed);
  return _aggregator_page_list($items, arg(3), $feed_source);
}