function linkit_get_profile_plugins in Linkit 7.2
Get all enabled plugins for the profiles used on the dashboard.
1 call to linkit_get_profile_plugins()
- _linkit_autocomplete in ./
linkit.module - Autocomplete callback function.
File
- ./
linkit.module, line 756 - Main file for linkit module.
Code
function linkit_get_profile_plugins() {
$installed_plugins = linkit_get_plugins();
$profile = linkit_get_dashboard_profile();
// We have no profile.
if (is_null($profile)) {
return array();
}
$enabled_plugins = array();
foreach ($installed_plugins as $name => $plugin) {
if ($profile->data['plugins'][$name]['enabled']) {
$enabled_plugins[$name] = $plugin;
}
}
return $enabled_plugins;
}