diff --git plugins/FeedapiEparserTypePlugin.inc plugins/FeedapiEparserTypePlugin.inc index 03929b4..3e2ef27 100644 --- plugins/FeedapiEparserTypePlugin.inc +++ plugins/FeedapiEparserTypePlugin.inc @@ -85,10 +85,17 @@ abstract class FeedapiEparserTypePlugin extends FeedapiEparserPluginBase { } $this->parseItem($item, $destination_item); + // Let modules alter the parsed source before returning + // Pass the value of the feed only + drupal_alter('eparse_parse_item', $destination_item, $item, $this->feed); $this->feed->parsed_source->items[] = $destination_item; } + // Let modules alter the parsed source before returning + // Pass the value of the feed only + drupal_alter('eparse_parse_global', $this->feed->parsed_source, $global_context, $this->feed); + return $this->feed->parsed_source; }