You are here

function purl_querystring::remove in Persistent URL 7

Same name and namespace in other branches
  1. 6 includes/purl_querystring.inc \purl_querystring::remove()

Removes specific modifier from a query string.

Parameters

$qs: The current querystring.

$element: a purl_path_element object

Return value

querystring with the modifier removed.

File

includes/purl_querystring.inc, line 70

Class

purl_querystring
Querystring processor.

Code

function remove($value, $element) {
  $qs = array();
  parse_str($value, $qs);
  unset($qs[$element->value]);
  return drupal_http_build_query($qs);
}