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'];
if ($style == 'asc') {
return icon('seven-sort-down', array(
'alt' => t('sort ascending'),
'attributes' => array(
'class' => array('tablesort tablesort-asc'),
),
));
}
else {
return icon('seven-sort-up', array(
'alt' => t('sort descending'),
'attributes' => array(
'class' => array('tablesort tablesort-desc'),
),
));
}
}