function coloractions_validate_low_and_high in ImageCache Actions 8
Same name and namespace in other branches
- 7 coloractions/imagecache_coloractions.module \coloractions_validate_low_and_high()
1 call to coloractions_validate_low_and_high()
- coloractions_validate_form in coloractions/
imagecache_coloractions.module - Form element validation handler that compares low and high values.
File
- coloractions/
imagecache_coloractions.module, line 968
Code
function coloractions_validate_low_and_high($element, $fieldset, $suffix) {
if ((double) $element[$fieldset]["low{$suffix}"]['#value'] > (double) $element[$fieldset]["high{$suffix}"]['#value']) {
form_error($element[$fieldset]["high{$suffix}"], t('%name-high must be higher then %name-low.', array(
'%name-high' => $element[$fieldset]["high{$suffix}"]['#title'],
'%name-low' => $element[$fieldset]["low{$suffix}"]['#title'],
)));
}
}