Skip to content
Snippets Groups Projects
Commit 85f7dfc3 authored by Tim Plunkett's avatar Tim Plunkett
Browse files

Readd check for plugin key type.

parent 445df4b8
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment