You are here

function theme_apachesolr_autocomplete_spellcheck in Apache Solr Autocomplete 7.2

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

Themes the spellchecker's suggestion. TODO: Move theming functions into JS.

File

./apachesolr_autocomplete.module, line 282
Alters search forms to suggest terms using Apache Solr using AJAX.

Code

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