diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index 2239928..9dd7d6e 100644 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -719,7 +719,7 @@ abstract class FeedsProcessor extends FeedsPlugin { if (isset($targets[$target]['preprocess_callbacks'])) { foreach ($targets[$target]['preprocess_callbacks'] as $callback) { - call_user_func_array($callback, array($source, $target_item, $target, &$mapping)); + call_user_func_array($callback, array($source, $target_item, $targets[$target], &$mapping)); } } diff --git a/tests/feeds_tests.module b/tests/feeds_tests.module index 1ddd2a6..a083df0 100644 --- a/tests/feeds_tests.module +++ b/tests/feeds_tests.module @@ -307,7 +307,7 @@ class FeedsTestsPreprocess { * * @see feeds_tests_feeds_processor_targets() */ - public static function callback(FeedsSource $source, $target_item, $target, array &$mapping) { + public static function callback(FeedsSource $source, $target_item, array $target, array &$mapping) { $mapping['required_value'] = TRUE; }