You are here

function theme_apachesolr_search_browse_blocks in Apache Solr Search 6.3

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

Shows a groups of blocks for starting a search from a filter.

1 theme call to theme_apachesolr_search_browse_blocks()
apachesolr_search_page_browse in ./apachesolr_search.module
Handle browse results for empty searches.

File

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

Code

function theme_apachesolr_search_browse_blocks($blocks) {
  $result = "<div class='apachesolr_browse_block'><h2>" . t('Browse available categories') . '</h2>';
  $result .= '<p>' . t('Pick a category to launch a search.') . '</p>';
  foreach ($blocks as $facet_field => $block) {
    $result .= theme('block', $block);
  }
  $result .= '</div>';
  return $result;
}