You are here

function purl_test_remove_base_path in Persistent URL 6

Same name and namespace in other branches
  1. 7 tests/purl_test.module \purl_test_remove_base_path()

Helper function to remove $base_path from testing links.

1 call to purl_test_remove_base_path()
purl_test_page in tests/purl_test.module
Test page callback.

File

tests/purl_test.module, line 33

Code

function purl_test_remove_base_path($link) {
  global $base_path;
  if ($base_path != '/') {
    return substr($link, strlen($base_path) - 1);
  }
  return $link;
}