protected function FeedsJSONPathParser::invokeHook in Feeds JSONPath Parser 7
Calls our filter hook.
Parameters
array &$item: The item to alter.
FeedsSource $source: The feed source.
Return value
true|null Returns true if the item should be skipped.
1 call to FeedsJSONPathParser::invokeHook()
- FeedsJSONPathParser::parse in ./
FeedsJSONPathParser.inc - Implements FeedsParser::parse().
File
- ./
FeedsJSONPathParser.inc, line 465 - Contains FeedsJSONPathParser.
Class
- FeedsJSONPathParser
- Parses JSON using JSONPath.
Code
protected function invokeHook(array &$item, FeedsSource $source) {
foreach (module_implements('feeds_jsonpath_parser_filter') as $module) {
$function = $module . '_feeds_jsonpath_parser_filter';
if ($function($item, $source) === TRUE) {
return TRUE;
}
}
}