From 85f7dfc3cf3c92d373351c08f87f679b5dc91823 Mon Sep 17 00:00:00 2001 From: Tim Plunkett <git@plnktt.com> Date: Sun, 29 Jul 2012 14:27:30 -0500 Subject: [PATCH] Readd check for plugin key type. --- views.module | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/views.module b/views.module index 6c8a54731827..d03642bd7f4f 100644 --- a/views.module +++ b/views.module @@ -1333,6 +1333,11 @@ function views_fetch_plugin_names($type, $key = NULL, $base = array()) { $plugins = array(); foreach ($definitions as $plugin_id => $plugin) { + // Skip plugins that don't conform to our key. + if ($key && (empty($plugin['type']) || $plugin['type'] != $key)) { + continue; + } + if (empty($plugin['no ui']) && (empty($base) || empty($plugin['base']) || array_intersect($base, $plugin['base']))) { $plugins[$plugin_id] = $plugin['title']; } -- GitLab