You are here

function theme_apachesolr_sort_link in Apache Solr Search 6

Same name and namespace in other branches
  1. 8 apachesolr.module \theme_apachesolr_sort_link()
  2. 5.2 apachesolr.module \theme_apachesolr_sort_link()
  3. 5 apachesolr.module \theme_apachesolr_sort_link()
  4. 6.3 apachesolr.module \theme_apachesolr_sort_link()
  5. 6.2 apachesolr.module \theme_apachesolr_sort_link()
  6. 7 apachesolr.module \theme_apachesolr_sort_link()
1 theme call to theme_apachesolr_sort_link()
apachesolr_block in ./apachesolr.module
Implementation of hook_block().

File

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

Code

function theme_apachesolr_sort_link($text, $path, $options = array(), $active = FALSE, $direction = '') {
  $icon = '';
  if ($direction) {
    $icon = ' ' . theme('tablesort_indicator', $direction);
  }
  if ($active) {
    if (isset($options['attributes']['class'])) {
      $options['attributes']['class'] .= ' active';
    }
    else {
      $options['attributes']['class'] = 'active';
    }
  }
  return $icon . apachesolr_l($text, $path, $options);
}