8.3.x tablesort.inc tablesort_init($header)
8.0.x tablesort.inc tablesort_init($header)
8.1.x tablesort.inc tablesort_init($header)
8.2.x tablesort.inc tablesort_init($header)
8.4.x tablesort.inc tablesort_init($header)
4.6.x tablesort.inc tablesort_init($header)
4.7.x tablesort.inc tablesort_init($header)
5.x tablesort.inc tablesort_init($header)
6.x tablesort.inc tablesort_init($header)
7.x tablesort.inc tablesort_init($header)

Initialize the table sort context.

2 calls to tablesort_init()
tablesort_sql in includes/tablesort.inc
Create an SQL sort clause.
theme_table in includes/theme.inc
Return a themed table.

File

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;
}