You are here

function aggregator_page_category in Drupal 4

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

Menu callback; displays all the items aggregated in a particular category.

1 string reference to 'aggregator_page_category'
aggregator_menu in modules/aggregator.module
Implementation of hook_menu().

File

modules/aggregator.module, line 1058
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_page_category() {
  $category = db_fetch_object(db_query('SELECT cid, title FROM {aggregator_category} WHERE cid = %d', arg(2)));
  return _aggregator_page_list('SELECT i.*, f.title AS ftitle, f.link AS flink FROM {aggregator_category_item} c LEFT JOIN {aggregator_item} i ON c.iid = i.iid LEFT JOIN {aggregator_feed} f ON i.fid = f.fid WHERE cid = ' . $category->cid . ' ORDER BY timestamp DESC, iid DESC', arg(3));
}