protected function TableSort::getSort

Determine the current sort direction.

Parameters

$headers: An array of column headers in the format described in theme_table().

Return value

The current sort direction ("asc" or "desc").

2 calls to TableSort::getSort()
TableSort::init in drupal-7.x/includes/tablesort.inc
Initializes the table sort context.
TableSort::init in drupal-7.x/includes/tablesort.inc
Initializes the table sort context.

Archivo

drupal-7.x/includes/tablesort.inc, line 75
Functions to aid in the creation of sortable tables.

Class

TableSort
Query extender class for tablesort queries.

Código

protected function getSort() {
  return tablesort_get_sort($this->header);
}