You are here

function theme_apachesolr_search_suggestions in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr_search.module \theme_apachesolr_search_suggestions()
  2. 6 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_search_page_custom in ./apachesolr_search.module
Mimics apachesolr_search_search_page() but is used for custom search pages We prefer to keep them seperate so we are not dependent from core search when someone tries to disable the core search

File

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

Code

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