1 token_test.module token_test_exit()

Implements hook_exit().

File

core/modules/simpletest/tests/token_test.module, line 10
Helper module for token tests.

Code

function token_test_exit() {
  if ($debug = state_get('page_tokens', array())) {
    $debug += array('tokens' => array(), 'data' => array(), 'options' => array());
    foreach (array_keys($debug['tokens']) as $token) {
      $debug['values'][$token] = token_replace($token, $debug['data'], $debug['options']);
    }
    state_set('page_tokens', $debug);
  }
}