function aggregator_page_last in Drupal 6
Same name and namespace in other branches
- 4 modules/aggregator.module \aggregator_page_last()
- 5 modules/aggregator/aggregator.module \aggregator_page_last()
- 7 modules/aggregator/aggregator.pages.inc \aggregator_page_last()
Menu callback; displays the most recent items gathered from any feed.
Return value
The items HTML.
1 string reference to 'aggregator_page_last'
- aggregator_menu in modules/
aggregator/ aggregator.module - Implementation of 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(url('aggregator/rss'), variable_get('site_name', 'Drupal') . ' ' . t('aggregator'));
$items = aggregator_feed_items_load('SELECT i.*, f.title AS ftitle, f.link AS flink FROM {aggregator_item} i INNER JOIN {aggregator_feed} f ON i.fid = f.fid ORDER BY i.timestamp DESC, i.iid DESC');
return _aggregator_page_list($items, arg(1));
}