function _crumbs_get_disabled_keys in Crumbs, the Breadcrumbs suite 6.2
2 calls to _crumbs_get_disabled_keys()
File
- ./
crumbs.plugin_engine.inc, line 89
Code
function _crumbs_get_disabled_keys(array $plugins) {
$disabled_keys = array();
foreach ($plugins as $plugin_key => $plugin) {
if (method_exists($plugin, 'disabledByDefault')) {
foreach ($plugin
->disabledByDefault() as $suffix) {
if (!isset($suffix) || $suffix === '') {
$disabled_keys[$plugin_key] = TRUE;
}
else {
$disabled_keys[$plugin_key . '.' . $suffix] = TRUE;
}
}
}
}
return $disabled_keys;
}