On this page
function aggregator_feed_load
aggregator_feed_load($fid)
Loads an aggregator feed.
Parameters
$fid: The feed id.
Return value
An object describing the feed.
File
- modules/aggregator/aggregator.module, line 683
- Used to aggregate syndicated content (RSS, RDF, and Atom).
Code
function aggregator_feed_load($fid) {
$feeds = &drupal_static(__FUNCTION__);
if (!isset($feeds[$fid])) {
$feeds[$fid] = db_query('SELECT * FROM {aggregator_feed} WHERE fid = :fid', array(':fid' => $fid))->fetchObject();
}
return $feeds[$fid];
}
© 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.module/function/aggregator_feed_load/7.x