function _aggregator_page_list
_aggregator_page_list($items, $op, $feed_source = '')
Prints an aggregator page listing a number of feed items.
Various menu callbacks use this function to print their feeds.
Parameters
$items: The items to be listed.
$op: Which form should be added to the items. Only 'categorize' is now recognized.
$feed_source: The feed source URL.
Return value
The rendered list of items for the feed.
File
- modules/aggregator/aggregator.pages.inc, line 173
- User page callbacks for the Aggregator module.
Code
function _aggregator_page_list($items, $op, $feed_source = '') { if (user_access('administer news feeds') && ($op == 'categorize')) { // Get form data. $output = aggregator_categorize_items($items, $feed_source); } else { // Assemble themed output. $output = $feed_source; foreach ($items as $item) { $output .= theme('aggregator_item', array('item' => $item)); } $output = theme('aggregator_wrapper', array('content' => $output)); } return $output; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.pages.inc/function/_aggregator_page_list/7.x