function theme_apachesolr_search_browse_blocks in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr_search.module \theme_apachesolr_search_browse_blocks()
- 6.3 apachesolr_search.module \theme_apachesolr_search_browse_blocks()
Shows a groups of blocks for starting a search from a filter.
File
- ./
apachesolr_search.module, line 1056 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function theme_apachesolr_search_browse_blocks($vars) {
$result = '';
if ($vars['content']['#children']) {
$result .= "<div class='apachesolr-browse-blocks'>\n<h2>" . t('Browse available categories') . "</h2>\n";
$result .= '<p>' . t('Pick a category to launch a search.') . "</p>\n";
$result .= $vars['content']['#children'] . "\n</div>\n";
}
return $result;
}