function weather_search_form_submit in Weather 7
Same name and namespace in other branches
- 6.5 weather.module \weather_search_form_submit()
- 7.3 weather.forms.inc \weather_search_form_submit()
- 7.2 weather.forms.inc \weather_search_form_submit()
Submission handler for the weather search form.
Just redirect the user to the weather URL with the search term stuffed on the end of it. We've been through validation but make sure the search contains no dodgy characters here.
File
- ./
weather.forms.inc, line 745 - Provide forms for configuration of weather displays.
Code
function weather_search_form_submit($form, &$form_state) {
$form_state['redirect'] = 'weather/' . urlencode($form_state['values']['search']);
}