You are here

function _email_widget_settings_size_validate in Email Field 6

1 string reference to '_email_widget_settings_size_validate'
email_widget_settings in ./email.module
Implementation of hook_widget_settings().

File

./email.module, line 210

Code

function _email_widget_settings_size_validate($element, &$form_state) {
  $value = $form_state['values']['size'];
  if (!is_numeric($value) || intval($value) != $value || $value <= 0) {
    form_error($element, t('"Size" must be a positive integer.'));
  }
}