| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_tablesort_indicator($style) |
Return a themed sort icon.
$style Set to either asc or desc. This sets which icon to show.
A themed sort icon.
includes/
<?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'));
}
}
?>
Kommentare
Kommentar hinzufügen