pager_get_querystring

Definition

pager_get_querystring()
includes/pager.inc, line 84

Description

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

<?php
function pager_get_querystring() {
  static $string = NULL;
  if (!isset($string)) {
    $string = drupal_query_string_encode($_REQUEST, array_merge(array('q', 'page'), array_keys($_COOKIE)));
  }
  return $string;
}
?>
 
 

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.