1 tablesort.inc tablesort_init($header)

Initializes the table sort context.

File

core/includes/tablesort.inc, line 13
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;
}