_aggregator_page_list

Versions
4.6 – 5
_aggregator_page_list($sql, $op, $header = '')
6 – 7
_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 items HTML.

▾ 3 functions call _aggregator_page_list()

aggregator_page_category in modules/aggregator/aggregator.pages.inc
Menu callback; displays all the items aggregated in a particular category.
aggregator_page_last in modules/aggregator/aggregator.pages.inc
Menu callback; displays the most recent items gathered from any feed.
aggregator_page_source in modules/aggregator/aggregator.pages.inc
Menu callback; displays all the items captured from a particular feed.

Code

modules/aggregator/aggregator.pages.inc, line 113

<?php
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', $item);
    }
    $output = theme('aggregator_wrapper', $output);
  }
  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.