You are here

function _feedapi_aggregator_load in FeedAPI 5

Load item data into the $feed_item object

File

feedapi_aggregator/feedapi_aggregator.module, line 484

Code

function _feedapi_aggregator_load($feed_item, $feed_nid, $settings = array()) {
  $item = db_fetch_array(db_query("SELECT * FROM {feedapi_aggregator_item} WHERE iid = %d", $feed_item->fiid));
  $feed_item->fiid = $item['iid'];
  $feed_item->feed_nid = $item['feed_nid'];
  $feed_item->arrived = 0;

  // no arrived time
  $feed_item->options->original_url = $item['link'];
  $feed_item->options->guid = $item['guid'];
  $feed_item->options->timestamp = $item['timestamp'];
  $feed_item->description = $item['description'];
  $feed_item->title = $item['title'];
  return $feed_item;
}