function apachesolr_autocomplete_form_search_form_alter in Apache Solr Autocomplete 6
Same name and namespace in other branches
- 7.2 apachesolr_autocomplete.module \apachesolr_autocomplete_form_search_form_alter()
Implementation of hook_form_FORM_ID_alter().
File
- ./
apachesolr_autocomplete.module, line 29 - Alters search forms to suggest terms using Apache Solr using AJAX. Thanks to robertDouglass who contributed some of the code.
Code
function apachesolr_autocomplete_form_search_form_alter(&$form, $form_state) {
if ($form['module']['#value'] == 'apachesolr_search' || $form['module']['#value'] == 'apachesolr_multisitesearch') {
$element =& $form['basic']['inline']['keys'];
apachesolr_autocomplete_do_alter($element);
}
}