You are here

function _feedapi_invoke_load in FeedAPI 5

Helper function for feedapi_invoke(). Load a list of feed items into the feed object from the processors.

1 call to _feedapi_invoke_load()
feedapi_invoke in ./feedapi.module
Invoke feedapi API callback functions.

File

./feedapi.module, line 1076
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function _feedapi_invoke_load(&$feed, $param) {
  $feed->items = array();
  foreach ($feed->processors as $processor) {
    $items = module_invoke($processor, 'feedapi_item', 'fetch', $feed);
    if (is_array($items)) {
      foreach ($items as $item) {
        $feed->items[] = $item;
      }
    }
  }
}