Same name and namespace in other branches
  1. 5.x includes/theme.inc \theme_tablesort_indicator()
  2. 6.x includes/theme.inc \theme_tablesort_indicator()
  3. 7.x includes/theme.inc \theme_tablesort_indicator()

Return a themed sort icon.

Parameters

$style: Set to either asc or desc. This sets which icon to show.

Return value

A themed sort icon.

Related topics

1 theme call to theme_tablesort_indicator()
tablesort_header in includes/tablesort.inc
Format a column header.

File

includes/theme.inc, line 769
The theme system, which controls the output of Drupal.

Code

function theme_tablesort_indicator($style) {
  if ($style == "asc") {
    return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending'));
  }
  else {
    return theme('image', 'misc/arrow-desc.png', t('sort icon'), t('sort descending'));
  }
}