protected function TableSort::init

Initializes the table sort context.

1 call to TableSort::init()
TableSort::orderByHeader in drupal/includes/tablesort.inc
Order the query based on a header array.

File

drupal/includes/tablesort.inc, line 59
Functions to aid in the creation of sortable tables.

Class

TableSort
Query extender class for tablesort queries.

Code

protected function init() {
  $ts = $this
    ->order();
  $ts['sort'] = $this
    ->getSort();
  $ts['query'] = $this
    ->getQueryParameters();
  return $ts;
}