Form constructor to list items aggregated in a category.
$category: The category for which to list all of the aggregated items.
string The rendered list of items for the feed.
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));
}