You are here

function theme_apachesolr_facet_link in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr.module \theme_apachesolr_facet_link()
  2. 6.2 apachesolr.module \theme_apachesolr_facet_link()
3 theme calls to theme_apachesolr_facet_link()
apachesolr_date_facet_block in ./apachesolr.module
Helper function for displaying a date facet block.
apachesolr_facet_block in ./apachesolr.module
Helper function for displaying a facet block.
apachesolr_search_nested_facet_items in ./apachesolr_search.module
Recursive function that returns a nested array of facet values for use with theme_item_list().

File

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

Code

function theme_apachesolr_facet_link($facet_text, $path, $options = array(), $count, $active = FALSE, $num_found = NULL) {
  $options['attributes']['class'][] = 'apachesolr-facet';
  if ($active) {
    $options['attributes']['class'][] = 'active';
  }
  $options['attributes']['class'] = implode(' ', $options['attributes']['class']);
  return apachesolr_l($facet_text . " ({$count})", $path, $options);
}