tablesort_init

Definition

tablesort_init($header)
drupal/includes/tablesort.inc, line 14

Description

Initialize the table sort context.

Code

function tablesort_init($header) {
  $ts = tablesort_get_order($header);
  $ts['sort'] = tablesort_get_sort($header);
  $ts['query_string'] = tablesort_get_querystring();
  return $ts;
}