Index: includes/tablesort.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/tablesort.inc,v retrieving revision 1.29 diff -u -r1.29 tablesort.inc --- includes/tablesort.inc 15 Oct 2004 22:16:00 -0000 1.29 +++ includes/tablesort.inc 14 Nov 2003 17:43:44 -0000 @@ -78,8 +78,7 @@ if ($cell['data'] == $ts['name']) { $ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc'); $cell['class'] = 'active'; - $title = ($ts['sort'] == 'asc' ? t('sort ascending') : t('sort descending')); - $image = ' '. theme('image', 'misc/arrow-'. $ts['sort'] .'.png', t('sort icon'), $title); + $image = theme('tablesort_'. $ts['sort']); } else { // If the user clicks a different header, we want to sort ascending initially. @@ -202,4 +201,17 @@ return 'asc'; } +/** + * Return code that emits the 'sort ascending' icon. + */ +function theme_tablesort_asc() { + return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending')); +} + +/** + * Return code that emits the 'sort descending' icon. + */ +function theme_tablesort_desc() { + return theme('image', 'misc/arrow-desc.png', t('sort icon'), t('sort descending')); +} ?>