function apachesolr_search_form_search_submit in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr_search.module \apachesolr_search_form_search_submit()
- 5.2 apachesolr_search.module \apachesolr_search_form_search_submit()
- 6 apachesolr_search.module \apachesolr_search_form_search_submit()
- 6.2 apachesolr_search.module \apachesolr_search_form_search_submit()
Added form submit function to retain filters.
See also
apachesolr_search_form_search_form_alter()
1 string reference to 'apachesolr_search_form_search_submit'
File
- ./
apachesolr_search.module, line 1602 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_form_search_submit($form, &$form_state) {
$fv = $form_state['values'];
// Replace keys with their rawurlencoded value
if (isset($fv['search_block_form'])) {
$raw_keys = str_replace("/", "%2f", $fv['search_block_form']);
$form_state['redirect'] = str_replace($fv['search_block_form'], $raw_keys, $form_state['redirect']);
}
}