1.20.x 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

themes/seven/template.php, line 124
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')));
  }
}