function theme_apachesolr_browse_blocks in Apache Solr Search 6.2
Theming function that shows a groups of blocks so users can start a search from a filter.
Parameters
$blocks an array of block objects.:
1 theme call to theme_apachesolr_browse_blocks()
- apachesolr_search_view in ./
apachesolr_search.module - Re-implementation of search_view().
File
- ./
apachesolr_search.module, line 370 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function theme_apachesolr_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;
}