You are here

function suggestion_form_alter in Autocomplete Search Suggestions 7

Same name and namespace in other branches
  1. 8.2 suggestion.module \suggestion_form_alter()
  2. 8 suggestion.module \suggestion_form_alter()
  3. 3.0.x suggestion.module \suggestion_form_alter()

Implements hook_form_alter().

File

./suggestion.module, line 60
Autocomplete suggestions.

Code

function suggestion_form_alter(&$form, &$state, $form_id) {
  $autocomplete = variable_get('suggestion_autocomplete', array());
  if (!empty($autocomplete[$form_id])) {
    return SuggestionHelper::alterElement($form, $autocomplete[$form_id]);
  }
}