function google_cse_form_search_form_alter in Google Custom Search Engine 7.3
Same name and namespace in other branches
- 7 google_cse.module \google_cse_form_search_form_alter()
- 7.2 google_cse.module \google_cse_form_search_form_alter()
Adds custom submit handler for search form.
File
- ./
google_cse.module, line 230 - Display a Google Custom Search Engine (CSE) on your site.
Code
function google_cse_form_search_form_alter(&$form, &$form_state, $form_id) {
if ($form['module']['#value'] == 'google_cse') {
$form['#attributes']['class'][] = 'google-cse';
}
}