You are here

protected function TableSort::init in Drupal 7

Initializes the table sort context.

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

File

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