diff --git a/feeds.rules.inc b/feeds.rules.inc index 49049fb426e6197ba3947c552cad8f78587d1986..ba21e29281ff1578d0b8b32ebb52b6e32d1234af 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;