1 template.php | seven_tablesort_indicator($variables) |
Overrides theme_tablesort_indicator().
Use our own image versions, so they show up as black and not gray on gray.
File
- core/
themes/ seven/ template.php, line 91 - Preprocess functions and theme function overrides for the Seven theme.
Code
function seven_tablesort_indicator($variables) {
$style = $variables['style'];
$theme_path = backdrop_get_path('theme', 'seven');
if ($style == 'asc') {
return theme('image', array('path' => $theme_path . '/images/sort-amount-up--white--64.png', 'alt' => t('sort ascending'), 'width' => 16, 'height' => 16, 'title' => t('sort ascending')));
}
else {
return theme('image', array('path' => $theme_path . '/images/sort-amount-down-alt--white--64.png', 'alt' => t('sort descending'), 'width' => 16, 'height' => 16, 'title' => t('sort descending')));
}
}