function weather_location_settings_form_validate in Weather 7
Same name and namespace in other branches
- 7.3 weather.forms.inc \weather_location_settings_form_validate()
- 7.2 weather.forms.inc \weather_location_settings_form_validate()
Implement hook_form_validate().
File
- ./
weather.forms.inc, line 512 - Provide forms for configuration of weather displays.
Code
function weather_location_settings_form_validate($form, &$form_state) {
// Make sure the ICAO code is supported by the module.
if (weather_get_country_from_icao($form_state['values']['place']) == '') {
form_set_error('icao', t('The ICAO code is not supported by this module.'));
}
}