You are here

function theme_apachesolr_search_suggestions in Apache Solr Search 6

Same name and namespace in other branches
  1. 8 apachesolr_search.module \theme_apachesolr_search_suggestions()
  2. 6.3 apachesolr_search.module \theme_apachesolr_search_suggestions()
  3. 7 apachesolr_search.module \theme_apachesolr_search_suggestions()

Default theme function for spelling suggestions.

1 theme call to theme_apachesolr_search_suggestions()
apachesolr_search_form_search_form_alter in ./apachesolr_search.module
Implementation of hook_form_[form_id]_alter().

File

./apachesolr_search.module, line 1223
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function theme_apachesolr_search_suggestions($links) {
  $output = '<div class="spelling-suggestions">';
  $output .= '<dl class="form-item"><dt><strong>' . t('Did you mean') . '</strong></dt>';
  foreach ((array) $links as $link) {
    $output .= '<dd>' . $link . '</dd>';
  }
  $output .= '</dl></div>';
  return $output;
}