function search_form_validate
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.
File
- modules/search/search.pages.inc, line 143
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!search!search.pages.inc/function/search_form_validate/7.x