aggregator_page_source

Versions
4.6 – 5
aggregator_page_source()
6 – 7
aggregator_page_source($arg1, $arg2 = NULL)

Menu callback; displays all the items captured from a particular feed.

If there are two arguments then this function is the categorize form.

Parameters

$arg1 If there are two arguments then $arg1 is $form_state. Otherwise, $arg1 is $feed.

$arg2 If there are two arguments then $arg2 is feed.

Return value

The item's HTML.

Code

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

<?php
function aggregator_page_source($arg1, $arg2 = NULL) {
  // If there are two arguments then this function is the categorize form, and
  // $arg1 is $form_state and $arg2 is $feed. Otherwise, $arg1 is $feed.
  $feed = is_object($arg2) ? $arg2 : $arg1;
  drupal_set_title($feed->title);
  $feed_source = theme('aggregator_feed_source', array('feed' => $feed));

  // It is safe to include the fid in the query because it's loaded from the
  // database by aggregator_feed_load.
  $items = aggregator_feed_items_load('source', $feed);

  return _aggregator_page_list($items, arg(3), $feed_source);
}
?>
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.