You are here

function crumbs_RuleWeightKeeper::findWeight in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 7 lib/RuleWeightKeeper.php \crumbs_RuleWeightKeeper::findWeight()

Determine the weight for the rule specified by the key.

File

./crumbs.plugin_engine.inc, line 283

Class

crumbs_RuleWeightKeeper

Code

function findWeight($key = NULL) {
  if (!isset($key)) {
    return $this->_rule_weights[''];
  }
  if (isset($this->_rule_weights[$key])) {
    return $this->_rule_weights[$key];
  }
  return $this
    ->_findWildcardWeight($key);
}