You are here

function aggregator_page_last in Drupal 7

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

Page callback: Displays the most recent items gathered from any feed.

Return value

The rendered list of items for the feed.

1 string reference to 'aggregator_page_last'
aggregator_menu in modules/aggregator/aggregator.module
Implements hook_menu().

File

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

Code

function aggregator_page_last() {
  drupal_add_feed('aggregator/rss', variable_get('site_name', 'Drupal') . ' ' . t('aggregator'));
  $items = aggregator_feed_items_load('sum');
  return _aggregator_page_list($items, arg(1));
}