Compose a URL query parameter array for pager links.
A URL query parameter array that consists of all components of the current page request except for those pertaining to paging.
function pager_get_query_parameters() {
$query =& drupal_static(__FUNCTION__);
if (!isset($query)) {
$query = drupal_get_query_parameters($_GET, array(
'page',
));
}
return $query;
}