function weather_search_form_validate in Weather 7
Same name and namespace in other branches
- 6.5 weather.module \weather_search_form_validate()
- 7.3 weather.forms.inc \weather_search_form_validate()
- 7.2 weather.forms.inc \weather_search_form_validate()
Validate the input from the weather search form
File
- ./
weather.forms.inc, line 731 - Provide forms for configuration of weather displays.
Code
function weather_search_form_validate($form, &$form_state) {
if (drupal_strlen($form_state['values']['search']) < 3 || drupal_strlen($form_state['values']['search']) > 64) {
form_set_error('search', t('The string to search for must be between 3 and 64 characters.'));
}
}