theme_tablesort_indicator

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

Returns HTML for a sort icon.

Parameters

$variables An associative array containing:

  • style: Set to either 'asc' or 'desc', this determines which icon to show.

Related topics

Code

includes/theme.inc, line 1772

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