You are here

function fapi_validation_rule_range in Form API Validation 7.2

1 string reference to 'fapi_validation_rule_range'
fapi_validation_fapi_validation_rules in ./fapi_validation.module
Implementation of hook_fapi_validation_rules

File

./fapi_validation.module, line 352

Code

function fapi_validation_rule_range($value, $params) {
  $min = $params[0];
  $max = $params[1];
  return $min <= $value && $max >= $value;
}