search_form_submit($form_id, $form_values)
drupal/modules/search/search.module, line 1022
Process a search form submission.
| Name | Description |
|---|---|
| Search interface | The Drupal search interface manages a global search mechanism. |
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;
}