You are here

function _aggregator_page_list in Drupal 5

Same name and namespace in other branches
  1. 4 modules/aggregator.module \_aggregator_page_list()
  2. 6 modules/aggregator/aggregator.pages.inc \_aggregator_page_list()
  3. 7 modules/aggregator/aggregator.pages.inc \_aggregator_page_list()

Prints an aggregator page listing a number of feed items. Various menu callbacks use this function to print their feeds.

3 calls to _aggregator_page_list()
aggregator_page_category in modules/aggregator/aggregator.module
Menu callback; displays all the items aggregated in a particular category.
aggregator_page_last in modules/aggregator/aggregator.module
Menu callback; displays the most recent items gathered from any feed.
aggregator_page_source in modules/aggregator/aggregator.module
Menu callback; displays all the items captured from a particular feed.

File

modules/aggregator/aggregator.module, line 1116
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function _aggregator_page_list($sql, $op, $header = '') {
  $categorize = user_access('administer news feeds') && $op == 'categorize';
  $form = aggregator_page_list($sql, $header, $categorize);
  if ($categorize) {
    return $form;
  }
  else {
    $output = '<div id="aggregator">';
    $output .= $header;
    foreach ($form['items'] as $item) {
      $output .= $item['#value'];
    }
    $output .= '</div>';
    $output .= $form['pager']['#value'];
    $output .= $form['feed_icon']['#value'];
    return $output;
  }
}