From dc73fee55ccef85eb939a35480fe3d3d9a582c4b Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Thu, 12 Jul 2012 11:38:01 -0700 Subject: [PATCH] Issue #1460282 by elliotttf, MegaChriz | jday: Fixed Call to undefined method FeedsMissingPlugin::entityType() . --- feeds.rules.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/feeds.rules.inc b/feeds.rules.inc index 49049fb4..ba21e292 100644 --- a/feeds.rules.inc +++ b/feeds.rules.inc @@ -11,9 +11,17 @@ function feeds_rules_event_info() { $info = array(); $entity_info = entity_get_info(); + foreach (feeds_importer_load_all() as $importer) { $config = $importer->getConfig(); $processor = feeds_plugin($config['processor']['plugin_key'], $importer->id); + + // It's possible to get FeedsMissingPlugin here which will break things + // since it doesn't implement FeedsProcessor::entityType(). + if (!$processor instanceof FeedsProcessor) { + continue; + } + $entity_type = $processor->entityType(); $label = isset($entity_info[$entity_type]['label']) ? $entity_info[$entity_type]['label'] : $entity_type; -- GitLab