You are here

public function purl_querystring::rewrite in Persistent URL 7

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

Just need to add the value to the front of the path.

Overrides purl_processor::rewrite

File

includes/purl_querystring.inc, line 80

Class

purl_querystring
Querystring processor.

Code

public function rewrite(&$path, &$options, $element) {
  if (!_purl_skip($element, $options)) {
    $options['query'][$element->value] = $element->id;
  }
}