function aggregator_page_category

Form constructor to list items aggregated in a category.

Parameters

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

Return value

string The rendered list of items for the feed.

See also

aggregator_menu()

Related topics

1 call to aggregator_page_category()
aggregator_page_category_form in drupal/core/modules/aggregator/aggregator.pages.inc
Form constructor to list items aggregated in a category.
1 string reference to 'aggregator_page_category'
aggregator_menu in drupal/core/modules/aggregator/aggregator.module
Implements hook_menu().

File

drupal/core/modules/aggregator/aggregator.pages.inc, line 61
User page callbacks for the Aggregator module.

Code

function aggregator_page_category($category) {
  drupal_add_feed('aggregator/rss/' . $category->cid, config('system.site')
    ->get('name') . ' ' . 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_load_feed_items('category', $category);
  return _aggregator_page_list($items, arg(3));
}