function PathautoTokenTestCase::mapTokenNames in Pathauto 7
1 call to PathautoTokenTestCase::mapTokenNames()
- PathautoTokenTestCase::assertTokens in ./
pathauto.test - Function copied from TokenTestHelper::assertTokens().
File
- ./
pathauto.test, line 968 - Functionality tests for Pathauto.
Class
- PathautoTokenTestCase
- Token functionality tests.
Code
function mapTokenNames($type, array $tokens = array()) {
$return = array();
foreach ($tokens as $token) {
$return[$token] = "[{$type}:{$token}]";
}
return $return;
}