aggregator_page_category

  1. drupal
    1. 4.7 aggregator.module
    2. 5 aggregator.module
    3. 6
    4. 7
Versions
4.7 – 5 aggregator_page_category()
6 aggregator_page_category($arg1, $arg2 = NULL)
7 aggregator_page_category($category)

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

Parameters

$category The category for which to list all the aggregated items.

Return value

  • The rendered list of items for a category.

▾ 1 function calls aggregator_page_category()

aggregator_page_category_form in drupal/modules/aggregator/aggregator.pages.inc
Menu callback; displays a form containing items aggregated in a category.

Code

drupal/modules/aggregator/aggregator.pages.inc, line 67

<?php
function aggregator_page_category($category) {
  drupal_add_feed('aggregator/rss/' . $category['cid'], variable_get('site_name', 'Drupal') . ' ' . t('aggregator - @title', array('@title' => $category['title'])));

  // It is safe to include the cid in the query because it's loaded from the
  // database by aggregator_category_load.
  $items = aggregator_feed_items_load('category', $category);

  return _aggregator_page_list($items, arg(3));
}
?>