function theme_apachesolr_facet_link in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 apachesolr.module \theme_apachesolr_facet_link()
- 6 apachesolr.module \theme_apachesolr_facet_link()
4 theme calls to theme_apachesolr_facet_link()
- apachesolr_date_date_facet_block in contrib/
apachesolr_date/ apachesolr_date.module - Helper function for displaying a date facet blocks.
- 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 2256 - 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);
}