function weather_search_form_submit in Weather 7.3
Same name and namespace in other branches
- 6.5 weather.module \weather_search_form_submit()
- 7 weather.forms.inc \weather_search_form_submit()
- 7.2 weather.forms.inc \weather_search_form_submit()
Submission handler for the weather search form.
Redirect to the weather URL with the search term added to the end.
File
- ./
weather.forms.inc, line 882 - Provide forms for configuration of weather displays.
Code
function weather_search_form_submit($form, &$form_state) {
$form_state['redirect'] = 'weather/' . $form_state['values']['search'];
}