You are here

function _crumbs_load_available_keys in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 6.2 crumbs.admin.inc \_crumbs_load_available_keys()
2 calls to _crumbs_load_available_keys()
crumbs_admin_form_submit in admin/crumbs.admin.inc
_crumbs_get_default_text in admin/crumbs.admin.inc

File

admin/crumbs.admin.inc, line 227

Code

function _crumbs_load_available_keys(array $plugins) {

  // we can't use the plugin engine,
  // or else we would miss disabled plugins.
  $plugin_operation = new crumbs_PluginOperation_describe();
  foreach ($plugins as $plugin_key => $plugin) {
    $plugin_operation
      ->invoke($plugin, $plugin_key);
  }
  return array(
    $plugin_operation
      ->getKeys(),
    $plugin_operation
      ->getKeysByPlugin(),
  );
}