function weather_search_form_validate in Weather 6.5
Same name and namespace in other branches
- 7.3 weather.forms.inc \weather_search_form_validate()
- 7 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.module, line 1172 - Display <acronym title="METeorological Aerodrome Report">METAR</acronym> weather data from anywhere in the world
Code
function weather_search_form_validate($form, &$form_state) {
if (strlen($form_state['values']['search']) < 3 || strlen($form_state['values']['search']) > 64) {
form_set_error('search', t('The string to search for must be between 3 and 64 characters.'));
}
}