1.20.x tablesort.inc tablesort_init($header)

Initializes the table sort context.

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'] = tablesort_get_query_parameters();
  return $ts;
}