function tablesort_init
7.x tablesort.inc | tablesort_init($header) |
6.x tablesort.inc | tablesort_init($header) |
Initialize the table sort context.
3 calls to tablesort_init()
- tablesort_sql in drupal-6.x/
includes/ tablesort.inc - Create an SQL sort clause.
- template_preprocess_forum_topic_list in drupal-6.x/
modules/ forum/ forum.module - Preprocess variables to format the topic listing.
- theme_table in drupal-6.x/
includes/ theme.inc - Return a themed table.
File
- drupal-6.x/
includes/ tablesort.inc, line 14 - Functions to aid in the creation of sortable tables.
Code
function tablesort_init($header) {
$ts = tablesort_get_order($header);
$ts['sort'] = tablesort_get_sort($header);
$ts['query_string'] = tablesort_get_querystring();
return $ts;
}