You are here

function _number_widget_settings_max_validate in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6.2 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.'));
  }
}