pager_get_querystring

Versions
4.7 – 6
pager_get_querystring()

Compose a query string to append to pager requests.

Return value

A query string that consists of all components of the current page request except for those pertaining to paging.

Code

includes/pager.inc, line 84

<?php
function pager_get_querystring() {
  static $string = NULL;
  if (!isset($string)) {
    $string = drupal_query_string_encode($_REQUEST, array_merge(array('q', 'page', 'pass'), array_keys($_COOKIE)));
  }
  return $string;
}
?>
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.