theme_tablesort_indicator

  1. drupal
    1. 4.7
    2. 5
    3. 6 theme.inc
    4. 7 theme.inc
Versions
4.7 – 6 theme_tablesort_indicator($style)
7 theme_tablesort_indicator($variables)

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

Code

includes/theme.inc, line 770

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