function _feedapi_sanitize_processors in FeedAPI 6
Same name and namespace in other branches
- 5 feedapi.module \_feedapi_sanitize_processors()
Remove non-existing processors from the processors arrays
1 call to _feedapi_sanitize_processors()
- feedapi_invoke in ./
feedapi.module - Invoke feedapi API callback functions.
File
- ./
feedapi.module, line 1517 - Handle the submodules (for feed and item processing) Provide a basic management of feeds
Code
function _feedapi_sanitize_processors(&$feed) {
if (is_array($feed->processors)) {
foreach ($feed->processors as $key => $processor) {
if (!module_exists($processor)) {
unset($feed->processors[$key]);
}
}
}
}