function theme_tablesort_indicator

7.x theme.inc theme_tablesort_indicator($variables)
6.x theme.inc theme_tablesort_indicator($style)

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 drupal-6.x/includes/tablesort.inc
Format a column header.

File

drupal-6.x/includes/theme.inc, line 1470
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'));
  }
}