TableSort::order
protected function TableSort::order
protected TableSort::order()
Determine the current sort criterion.
Parameters
$headers: An array of column headers in the format described in theme_table().
Return value
An associative array describing the criterion, containing the keys:
- "name": The localized title of the table column.
- "sql": The name of the database field to sort on.
File
- includes/tablesort.inc, line 101
- Functions to aid in the creation of sortable tables.
Class
- TableSort
- Query extender class for tablesort queries.
Code
protected function order() { return tablesort_get_order($this->header); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!tablesort.inc/function/TableSort::order/7.x