tablesort_pager
- Versions
- 4.6
tablesort_pager()
Fetch pager link arguments.
When producing a sortable table that presents paged data, pass the output of this function into theme('pager') to preserve the current sort order.
Code
includes/tablesort.inc, line 27
<?php
function tablesort_pager() {
$cgi = $_SERVER['REQUEST_METHOD'] == 'GET' ? $_GET : $_POST;
unset($cgi['q'], $cgi['from']);
return $cgi;
}
?>Login or register to post comments 