function views_plugin_dependencies in Features 6
Provides an array that maps hook_views_plugins() to modules.
1 call to views_plugin_dependencies()
- views_features_export in includes/
features.views.inc - Implementation of hook_features_export().
File
- includes/
features.views.inc, line 230
Code
function views_plugin_dependencies() {
views_include_handlers();
static $map;
if (!isset($map)) {
$map = array();
foreach (module_implements('views_plugins') as $module) {
$plugins = module_invoke($module, 'views_plugins');
if (!empty($plugins)) {
foreach ($plugins as $type => $items) {
if (is_array($items)) {
foreach (array_keys($items) as $plugin_name) {
$map[$type][$plugin_name] = $module;
}
}
}
}
}
}
return $map;
}