theme_tablesort_indicator

Versions
5 – 6
theme_tablesort_indicator($style)
7
theme_tablesort_indicator($variables)

Return a themed sort icon.

Parameters

$variables An associative array containing:

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

Return value

A themed sort icon.

Code

7/includes/theme.inc, line 1750

<?php
function theme_tablesort_indicator($variables) {
  if ($variables['style'] == "asc") {
    return theme('image', array('path' => 'misc/arrow-asc.png', 'alt' => t('sort ascending'), 'title' => t('sort ascending')));
  }
  else {
    return theme('image', array('path' => 'misc/arrow-desc.png', 'alt' => t('sort descending'), 'title' => t('sort descending')));
  }
}
?>