You are here

function theme_apachesolr_facet_item in Apache Solr Search 5

4 theme calls to theme_apachesolr_facet_item()
apachesolrlang_block in contrib/apachesolr_lang/apachesolrlang.module
Implementation of hook_block().
apachesolr_facet_block in ./apachesolr.module
apachesolr_multisitesearch_block in contrib/apachesolr_multisitesearch/apachesolr_multisitesearch.module
Implementation of hook_block().
apachesolr_search_block in ./apachesolr_search.module
Implementation of hook_block().

File

./apachesolr.module, line 831
Integration with the Apache Solr search application.

Code

function theme_apachesolr_facet_item($name, $count, $path, $active = FALSE, $unclick_link = NULL, $num_found = NULL) {
  $attributes = array();
  if ($active) {
    $attributes['class'] = 'active';
  }
  if ($unclick_link) {
    return $unclick_link . ' ' . check_plain($name);
  }
  else {
    return l($name . " ({$count})", $path, $attributes, isset($_GET['solrsort']) ? "solrsort=" . check_plain($_GET['solrsort']) : FALSE);
  }
}