function search_form_validate in Drupal 4
Same name and namespace in other branches
- 5 modules/search/search.module \search_form_validate()
- 6 modules/search/search.pages.inc \search_form_validate()
- 7 modules/search/search.pages.inc \search_form_validate()
As the search form collates keys from other modules hooked in via hook_form_alter, the validation takes place in _submit. search_form_validate() is used solely to set the 'processed_keys' form value for the basic search form.
Related topics
File
- modules/
search.module, line 1007 - Enables site-wide keyword searching.
Code
function search_form_validate($form_id, $form_values, $form) {
form_set_value($form['basic']['inline']['processed_keys'], trim($form_values['keys']));
}