You are here

function _number_widget_settings_min_validate in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/number/number.module \_number_widget_settings_min_validate()

File

modules/number/number.module, line 200
Defines numeric field types.

Code

function _number_widget_settings_min_validate($element, &$form_state) {
  $value = $form_state['values']['min'];
  if ($value && !is_numeric($value)) {
    form_set_error('min', t('"Minimum" must be a number.'));
  }
}