You are here

function _crumbs_get_disabled_keys in Crumbs, the Breadcrumbs suite 6.2

2 calls to _crumbs_get_disabled_keys()
_crumbs_get_default_text in ./crumbs.admin.inc
_crumbs_load_plugin_engine in ./crumbs.plugin_engine.inc

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;
}