You are here

function weather_search_form_validate in Weather 7.3

Same name and namespace in other branches
  1. 6.5 weather.module \weather_search_form_validate()
  2. 7 weather.forms.inc \weather_search_form_validate()
  3. 7.2 weather.forms.inc \weather_search_form_validate()

Validate the input from the weather search form.

File

./weather.forms.inc, line 871
Provide forms for configuration of weather displays.

Code

function weather_search_form_validate($form, &$form_state) {
  if (drupal_strlen($form_state['values']['search']) < 3) {
    form_set_error('search', t('The string to search for must have at least three characters.'));
  }
}