From 1dba414bf0956b65bbee132dbfc01a1c6b529975 Mon Sep 17 00:00:00 2001 From: megachriz <megachriz@654114.no-reply.drupal.org> Date: Sun, 11 Oct 2015 12:52:30 +0200 Subject: [PATCH] Issue #2584157 by MegaChriz: fixed missing mapping targets in the UI for contrib processors. --- feeds.feeds.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/feeds.feeds.inc b/feeds.feeds.inc index a51a7a6c..09ea0a5b 100644 --- a/feeds.feeds.inc +++ b/feeds.feeds.inc @@ -23,6 +23,11 @@ function feeds_feeds_processor_targets($entity_type, $bundle) { function feeds_feeds_processor_targets_alter(array &$targets, $entity_type, $bundle) { // This hook gets called last, so that we normalize the whole array. feeds_normalize_targets($targets); + + // Since a hook can be invoked multiple times during a request, reset the + // "feeds_feeds_processor_targets" variable. + // @see _feeds_feeds_processor_targets_alter() + drupal_static_reset('feeds_feeds_processor_targets'); } /** -- GitLab