theme_tablesort_indicator

Definition

theme_tablesort_indicator($style)
drupal/includes/theme.inc, line 848

Description

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

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

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'));
  }
}