You are here

function token_test_token_values in Token 6

Implements hook_token_values().

File

tests/token_test.module, line 40

Code

function token_test_token_values($type, $object = NULL, $options = array()) {
  $tokens = array();
  if ($type == 'global') {

    // Provide some wildcard token values
    $tokens['alpha'] = 'Alpha';
    $tokens['beta-1'] = 'Beta plus 1';
    $tokens['beta-2'] = 'Beta plus 2';
    $tokens['gamma_A'] = 'Gamma plus A';
    $tokens['delta-extra'] = 'Delta plus extra';
    $tokens['epsilon-zeta-A'] = 'Epsilon-Zeta plus A';
    $tokens['option-foo'] = !empty($options['foo']) ? $options['foo'] : '';
  }
  return $tokens;
}