You are here

function theme_apachesolr_autocomplete_spellcheck in Apache Solr Autocomplete 6

Same name and namespace in other branches
  1. 7.2 apachesolr_autocomplete.module \theme_apachesolr_autocomplete_spellcheck()
  2. 7 apachesolr_autocomplete.module \theme_apachesolr_autocomplete_spellcheck()

Themes the spellchecker's suggestion.

File

./apachesolr_autocomplete.module, line 183
Alters search forms to suggest terms using Apache Solr using AJAX. Thanks to robertDouglass who contributed some of the code.

Code

function theme_apachesolr_autocomplete_spellcheck($suggestion) {
  $suggestion_string = $suggestion['suggestion'];
  return '<span class="apachesolr_autocomplete message">' . t('Did you mean') . ':</span> ' . $suggestion_string;
}