function akamai_test_akamai_paths_alter in Akamai 7.2
Same name and namespace in other branches
- 8 tests/akamai_test.module \akamai_test_akamai_paths_alter()
- 8.2 tests/akamai_test.module \akamai_test_akamai_paths_alter()
- 7.3 tests/akamai_test.module \akamai_test_akamai_paths_alter()
- 7 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";
}
}