function _feedapi_invoke in FeedAPI 5
Same name and namespace in other branches
- 6 feedapi.module \_feedapi_invoke()
Helper function for feedapi_invoke().
Generic operations, collects results and returns array
2 calls to _feedapi_invoke()
- feedapi_expire in ./
feedapi.module - Delete expired items and return informations about the feed refreshing
- feedapi_invoke in ./
feedapi.module - Invoke feedapi API callback functions.
File
- ./
feedapi.module, line 1055 - Handle the submodules (for feed and item processing) Provide a basic management of feeds
Code
function _feedapi_invoke($op, &$feed, $param) {
$output = array();
foreach ($feed->processors as $processor) {
$result = module_invoke($processor, 'feedapi_item', $op, $feed, $param);
// Result may be a list of items or single values (count)
if ($result) {
if (is_array($result)) {
$output = array_merge($output, $result);
}
else {
$output[] = $result;
}
}
}
return $output;
}