function search_form_submit

Process a search form submission.

File

modules/search/search.pages.inc, line 151

Code

function search_form_submit($form, &$form_state) {
    $keys = $form_state['values']['processed_keys'];
    if ($keys == '') {
        form_set_error('keys', t('Please enter some keywords.'));
        // Fall through to the form redirect.
    }
    $form_state['redirect'] = $form_state['action'] . '/' . $keys;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.