You are here

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

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

File

./crumbs.plugin_engine.inc, line 271

Class

crumbs_RuleWeightKeeper

Code

function getSmallestWeight() {
  foreach ($this->_rule_weights as $weight) {
    if ($weight !== FALSE) {
      return $weight;
    }
  }
  return FALSE;
}