You are here

function theme_tablesort_indicator in Drupal 4

Same name and namespace in other branches
  1. 5 includes/theme.inc \theme_tablesort_indicator()
  2. 6 includes/theme.inc \theme_tablesort_indicator()
  3. 7 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'));
  }
}