Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Dec 2009 at 22:04 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
daniele.rosa commentedchange tablesort_header to:
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index e9c2806..cb9f00e 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -143,7 +143,9 @@ function tablesort_header($cell, $header, $ts) {
$ts['sort'] = 'asc';
$image = '';
}
- $cell['data'] = l($cell['data'] . $image, $_GET['q'], array('attributes' => array('title' => $title), 'query' => array_merge($ts['query'], array('sort' => $ts['sort'], 'order' => $cell['data'])), 'html' => TRUE));
+ $cell['data'] = l($cell['data'] . $image, $_GET['q'], array('attributes' => array('title' => $title), 'query' => array_merge($ts['query'], array('sort' => $ts['sort'], 'order' => $cell['data'])), 'html' => TRUE
+ , 'fragment' => isset($cell['fragment']) ? $cell['fragment'] : ''
+ ));
and define table header with:
$header = array(
array('data' => t($recordheadername), 'field' => 'count','sort' => 'DESC','style'=>'text-align:center',
'fragment' => 'yourfragmenttext'),);