You are here

function gss_form_alter in Google Site Search 7

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

Implements hook_form_alter().

Adds custom submit handler for search form.

File

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

Code

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