function search_form_submit in Drupal 4
Same name and namespace in other branches
- 5 modules/search/search.module \search_form_submit()
- 6 modules/search/search.pages.inc \search_form_submit()
- 7 modules/search/search.pages.inc \search_form_submit()
Process a search form submission.
Related topics
File
- modules/
search.module, line 1014 - Enables site-wide keyword searching.
Code
function search_form_submit($form_id, $form_values) {
$keys = $form_values['processed_keys'];
if ($keys == '') {
form_set_error('keys', t('Please enter some keywords.'));
// Fall through to the drupal_goto() call.
}
$type = $form_values['module'] ? $form_values['module'] : 'node';
return 'search/' . $type . '/' . $keys;
}