tablesort_init

Versions
4.6 – 7
tablesort_init($header)

Initialize the table sort context.

▾ 3 functions call tablesort_init()

tablesort_sql in includes/tablesort.inc
Create an SQL sort clause.
template_preprocess_forum_topic_list in modules/forum/forum.module
Preprocess variables to format the topic listing.
theme_table in includes/theme.inc
Return a themed table.

Code

includes/tablesort.inc, line 14

<?php
function tablesort_init($header) {
  $ts = tablesort_get_order($header);
  $ts['sort'] = tablesort_get_sort($header);
  $ts['query_string'] = tablesort_get_querystring();
  return $ts;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.