You are here

function gss_search_form_submit in Google Site Search 7

Same name and namespace in other branches
  1. 6 gss.module \gss_search_form_submit()

Form submission handler for search forms.

See also

search_form()

search_block_form()

search_theme_form()

1 string reference to 'gss_search_form_submit'
gss_form_alter in ./gss.module
Implements hook_form_alter().

File

./gss.module, line 240
GSS module file.

Code

function gss_search_form_submit($form, &$form_state) {
  $check = gss_check();
  if ($check) {

    // Get the search keys, either from search_form or from search_block_form.
    $keys = isset($form_state['values']['search_block_form']) ? $form_state['values']['search_block_form'] : $form_state['values']['processed_keys'];
    $form_state['redirect'] = array(
      'search/gss/' . $keys,
    );
  }
}