You are here

function _purl_skip in Persistent URL 6

Same name and namespace in other branches
  1. 7 purl.module \_purl_skip()

Helper function to determine if a url should be rewritten.

Parameters

$e: purl_path_element object

$o: url options array.

Return value

true if processing should be skipped, false otherwise.

5 calls to _purl_skip()
purl_domain::rewrite in includes/purl_domain.inc
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.
purl_pair::rewrite in includes/purl_pair.inc
Just need to add the value to the front of the path.
purl_path::rewrite in includes/purl_path.inc
Just need to add the value to the front of the path.
purl_querystring::rewrite in includes/purl_querystring.inc
Just need to add the value to the front of the path.
purl_subdomain::rewrite in includes/purl_subdomain.inc
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.

File

./purl.module, line 922

Code

function _purl_skip($e, $o) {
  if (!empty($o['purl']['disabled'])) {
    return true;
  }
  if (isset($o['purl']['remove'])) {
    return in_array($e->provider, $o['purl']['remove']);
  }
  return false;
}