You are here

function aggregator_feed_load in Drupal 6

Same name and namespace in other branches
  1. 7 modules/aggregator/aggregator.module \aggregator_feed_load()

Load an aggregator feed.

Parameters

$fid: The feed id.

Return value

An associative array describing the feed.

File

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

Code

function aggregator_feed_load($fid) {
  static $feeds;
  if (!isset($feeds[$fid])) {
    $feeds[$fid] = db_fetch_array(db_query('SELECT * FROM {aggregator_feed} WHERE fid = %d', $fid));
  }
  return $feeds[$fid];
}