You are here

function theme_apachesolr_unclick_link in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 5 apachesolr.module \theme_apachesolr_unclick_link()
  2. 6 apachesolr.module \theme_apachesolr_unclick_link()
  3. 6.2 apachesolr.module \theme_apachesolr_unclick_link()
4 theme calls to theme_apachesolr_unclick_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_currentsearch_block in ./apachesolr_search.module
Return the contents of the "Current search" 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 1701
Integration with the Apache Solr search application.

Code

function theme_apachesolr_unclick_link($facet_text, $path, $options = array()) {
  if (empty($options['html'])) {
    $facet_text = check_plain(html_entity_decode($facet_text));
  }
  else {

    // Don't pass this option as TRUE into apachesolr_l().
    unset($options['html']);
  }
  $options['attributes']['class'] = 'apachesolr-unclick';
  return apachesolr_l("(-)", $path, $options) . ' ' . $facet_text;
}