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.

▾ 12 functions call tablesort_pager()

comment_admin_overview in modules/comment.module
Menu callback; present an administrative comment listing.
path_overview in modules/path.module
Return a listing of all defined URL aliases.
queue_overview in modules/queue.module
Display a page listing the nodes in the submission queue.
statistics_node_tracker in modules/statistics.module
statistics_recent_hits in modules/statistics.module
Menu callback; presents the "Recent hits" page.
statistics_top_pages in modules/statistics.module
Menu callback; presents the "Top pages" page.
statistics_top_referrers in modules/statistics.module
Menu callback; presents the "Top referrers" page.
statistics_top_users in modules/statistics.module
Menu callback; presents the "Top users" page.
statistics_user_tracker in modules/statistics.module
theme_forum_topic_list in modules/forum.module
Format the topic listing.
user_admin_account in modules/user.module
watchdog_overview in modules/watchdog.module
Menu callback; displays a listing of log messages.

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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.