protected function TableSort::init
7.x tablesort.inc | protected TableSort::init() |
Initializes the table sort context.
1 call to TableSort::init()
- TableSort::orderByHeader in drupal-7.x/
includes/ tablesort.inc - Order the query based on a header array.
File
- drupal-7.x/
includes/ tablesort.inc, line 60 - 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;
}