You are here

function theme_apachesolr_autocomplete_spellcheck in Apache Solr Autocomplete 7

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

Themes the spellchecker's suggestion.

File

./apachesolr_autocomplete.module, line 279
Alters search forms to suggest terms using Apache Solr using AJAX. Thanks to: robertDouglass who contributed some of the code. sch4lly for contributing to D7 version

Code

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