| Versions | |
|---|---|
| 4.7 – 5 | aggregator_page_category() |
| 6 | aggregator_page_category( |
| 7 | aggregator_page_category($category) |
Menu callback; displays all the items aggregated in a particular category.
modules/
<?php
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));
}
?>