function search_form_validate

Form validation handler for search_form().

As the search form collates keys from other modules hooked in via hook_form_alter, the validation takes place in search_form_submit(). search_form_validate() is used solely to set the 'processed_keys' form value for the basic search form.

See also

search_form_submit()

File

drupal/core/modules/search/search.pages.inc, line 168
User page callbacks for the Search module.

Code

function search_form_validate($form, &$form_state) {
  form_set_value($form['basic']['processed_keys'], trim($form_state['values']['keys']), $form_state);
}