function _number_widget_settings_max_validate in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 modules/number/number.module \_number_widget_settings_max_validate()
File
- modules/
number/ number.module, line 207 - Defines numeric field types.
Code
function _number_widget_settings_max_validate($element, &$form_state) {
$value = $form_state['values']['max'];
if ($value && !is_numeric($value)) {
form_set_error('max', t('"Maximum" must be a number.'));
}
}