You are here

function _feedapi_aggregator_fetch in FeedAPI 5

Return all items related to a feed

File

feedapi_aggregator/feedapi_aggregator.module, line 500

Code

function _feedapi_aggregator_fetch($feed, $settings = array()) {
  $result = db_query("SELECT iid AS fiid, feed_nid, timestamp, link FROM {feedapi_aggregator_item} WHERE feed_nid = %d", $feed->nid);
  $items = array();
  while ($item = db_fetch_object($result)) {
    $items[] = $item;
  }
  return $items;
}