You are here

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

Same name and namespace in other branches
  1. 6.2 crumbs.plugin_engine.inc \crumbs_RuleWeightKeeper::getSmallestWeight()

File

lib/RuleWeightKeeper.php, line 41

Class

crumbs_RuleWeightKeeper

Code

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