You are here

function gss_form_alter in Google Site Search 6

Same name and namespace in other branches
  1. 7 gss.module \gss_form_alter()

Adds custom submit handler for search form.

File

./gss.module, line 200

Code

function gss_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'search_form' || $form_id == 'search_block_form' || $form_id == 'search_theme_form') {
    $form['#submit'][] = 'gss_search_form_submit';
    $form['#attributes']['class'] = 'gss';
  }
}