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