summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2013-11-20 15:00:46 +0100
committerEmil Stjerneman2013-11-20 15:00:46 +0100
commit1545562acaa235fc0652cf187d2860cd9a4192b1 (patch)
treef08a73e84c28a7f37a0228e34fdb39b027f5c3c4
parent65d144a0d34b321ac79bc761398bdf5dd60aabec (diff)
Fixed #2116273: Fatal error: Class 'LinkitSearchPluginEntity' during Drupal Installation.7.x-3.1
-rw-r--r--plugins/linkit_search/entity.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/linkit_search/entity.inc b/plugins/linkit_search/entity.inc
index 3129a71..b8a18ca 100644
--- a/plugins/linkit_search/entity.inc
+++ b/plugins/linkit_search/entity.inc
@@ -72,6 +72,12 @@ function linkit_entity_ctools_linkit_get_children($plugin, $parent) {
// Test the plugins.
foreach ($plugins as $plugin_name => $plugin) {
+ // In some cases the plugins isn't auto loaded. Ctools handle this for us.
+ // This is typical when installing Linkit.
+ if (!class_exists($plugin['handler']['class'])) {
+ continue;
+ }
+
$tested_plugin = new $plugin['handler']['class']($plugin, new LinkitProfile());
if (isset($tested_plugin->unusable) && $tested_plugin->unusable) {
unset($plugins[$plugin_name]);