function theme_apachesolr_sort_link in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.module \theme_apachesolr_sort_link()
- 5.2 apachesolr.module \theme_apachesolr_sort_link()
- 5 apachesolr.module \theme_apachesolr_sort_link()
- 6 apachesolr.module \theme_apachesolr_sort_link()
- 6.2 apachesolr.module \theme_apachesolr_sort_link()
- 7 apachesolr.module \theme_apachesolr_sort_link()
1 theme call to theme_apachesolr_sort_link()
- apachesolr_search_block_view in ./
apachesolr_search.module - Vew a specific block according to the delta identifier
File
- ./
apachesolr.module, line 2687 - Integration with the Apache Solr search application.
Code
function theme_apachesolr_sort_link($vars) {
$icon = '';
if ($vars['direction']) {
$icon = ' ' . theme('tablesort_indicator', $vars['direction']);
}
if ($vars['active']) {
if (isset($vars['options']['attributes']['class'])) {
$vars['options']['attributes']['class'] .= ' active';
}
else {
$vars['options']['attributes']['class'] = 'active';
}
}
return $icon . apachesolr_l($vars['text'], $vars['path'], $vars['options']);
}