search_form_validate

  1. drupal
    1. 4.7 search.module
    2. 5 search.module
    3. 6
    4. 7
Versions
4.7 – 5 search_form_validate($form_id, $form_values, $form)
6 – 7 search_form_validate($form, &$form_state)

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.

Code

drupal/modules/search/search.pages.inc, line 145

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