You are here

function purl_querystring::remove in Persistent URL 6

Same name and namespace in other branches
  1. 7 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 69

Class

purl_querystring
Querystring processor.

Code

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