You are here

function akamai_test_akamai_paths_alter in Akamai 8

Same name and namespace in other branches
  1. 8.2 tests/akamai_test.module \akamai_test_akamai_paths_alter()
  2. 7.3 tests/akamai_test.module \akamai_test_akamai_paths_alter()
  3. 7 tests/akamai_test.module \akamai_test_akamai_paths_alter()
  4. 7.2 tests/akamai_test.module \akamai_test_akamai_paths_alter()

Test adding a special path via the akamai_paths alter hook.

File

tests/akamai_test.module, line 6

Code

function akamai_test_akamai_paths_alter(&$paths, $node) {
  if (in_array('clear/me', $paths)) {
    $paths = array();
  }
  else {
    $paths[] = "akamai/paths/alter/test";
  }
}