You are here

function _crumbs_load_plugin_engine in Crumbs, the Breadcrumbs suite 6.2

2 calls to _crumbs_load_plugin_engine()
crumbs_build_breadcrumb in ./crumbs.breadcrumb.inc
crumbs_get_plugin_engine in ./crumbs.module

File

./crumbs.plugin_engine.inc, line 4

Code

function _crumbs_load_plugin_engine() {
  $plugins = crumbs_get_plugins();
  $weights = _crumbs_load_weights();
  $disabled_keys = _crumbs_get_disabled_keys($plugins);
  foreach ($disabled_keys as $key => $disabled) {
    if (!isset($weights[$key])) {
      $weights[$key] = FALSE;
    }
  }
  return new crumbs_PluginEngine($plugins, $weights);
}