You are here

function pager_get_querystring in Drupal 4

Same name and namespace in other branches
  1. 5 includes/pager.inc \pager_get_querystring()
  2. 6 includes/pager.inc \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.

1 call to pager_get_querystring()
theme_pager_link in includes/pager.inc
Format a link to a specific query result page.

File

includes/pager.inc, line 92
Functions to aid in presenting database results as a set of pages.

Code

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;
}