You are here

function seven_tablesort_indicator in Drupal 7

Override of 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 89

Code

function seven_tablesort_indicator($variables) {
  $style = $variables['style'];
  $theme_path = drupal_get_path('theme', 'seven');
  if ($style == 'asc') {
    return theme('image', array(
      'path' => $theme_path . '/images/arrow-asc.png',
      'alt' => t('sort ascending'),
      'width' => 13,
      'height' => 13,
      'title' => t('sort ascending'),
    ));
  }
  else {
    return theme('image', array(
      'path' => $theme_path . '/images/arrow-desc.png',
      'alt' => t('sort descending'),
      'width' => 13,
      'height' => 13,
      'title' => t('sort descending'),
    ));
  }
}