function _range_widget_settings_max_validate in Range 6
1 string reference to '_range_widget_settings_max_validate'
- range_field_settings in ./
range.module - Implementation of hook_field_settings().
File
- ./
range.module, line 230 - Defines numeric fields within a range of possible values and displays them colored accordingly..
Code
function _range_widget_settings_max_validate($element, &$form_state) {
$value = $form_state['values']['max'];
if ($value && !is_numeric($value) && $value != '>') {
form_set_error('max', t('"Maximum" must be a number.'));
}
}