You are here

public function purl_useragent::rewrite in Persistent URL 6

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

Responsible for rewriting outgoing links. Note: it's this functions job to make sure it doesn't alter a link that has already been treated.

This must also check $options['purl']['disabled'] and $options['purl']['remove']. The _purl_skip() method is helpful for this.

Parameters

$path: string, by-reference the path to modify.

$options: See url() docs

$element: The element to add to the path.

Overrides purl_processor::rewrite

File

includes/purl_useragent.inc, line 41

Class

purl_useragent
User agent style.

Code

public function rewrite(&$path, &$options, $element) {
}