function crumbs_RuleWeightKeeper::findWeight in Crumbs, the Breadcrumbs suite 6.2
Same name and namespace in other branches
- 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
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);
}