You are here

function _crumbs_load_weights in Crumbs, the Breadcrumbs suite 6.2

3 calls to _crumbs_load_weights()
crumbs_admin_form_submit in ./crumbs.admin.inc
_crumbs_get_default_text in ./crumbs.admin.inc
_crumbs_load_plugin_engine in ./crumbs.plugin_engine.inc

File

./crumbs.plugin_engine.inc, line 54

Code

function _crumbs_load_weights() {
  $weights = variable_get('crumbs_weights', NULL);
  if (!is_array($weights)) {

    // load and convert settings from the 1.x branch.
    $weights = _crumbs_load_weights_1_x();
  }
  $weights = is_array($weights) ? $weights : array();
  asort($weights);
  if (!isset($weights['*'])) {
    $weights['*'] = count($weights);
  }
  return $weights;
}