You are here

function commons_origins_apachesolr_search_browse_blocks in Drupal Commons 7.3

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

File

themes/commons/commons_origins/template.php, line 103
Process theme data.

Code

function commons_origins_apachesolr_search_browse_blocks($vars) {
  $result = '';
  if ($vars['content']['#children']) {
    $result .= '<div class="apachesolr-browse-blocks">' . "\n";
    $result .= '  <h2 class="search-results-title">' . t('Browse available categories') . '</h2>' . "\n";
    $result .= '  <div class="commons-pod">' . "\n";
    $result .= '    <p>' . t('Pick a category to launch a search.') . '</p>' . "\n";
    $result .= $vars['content']['#children'] . "\n";
    $result .= '  </div>' . "\n";
    $result .= '</div>';
  }
  return $result;
}