function token_test_exit in Token 6
Same name and namespace in other branches
- 7 tests/token_test.module \token_test_exit()
Implements hook_exit().
File
- tests/
token_test.module, line 6
Code
function token_test_exit() {
if ($debug = variable_get('token_page_tokens', array())) {
$debug += array(
'tokens' => array(),
'data' => array(),
'options' => array(),
);
foreach (array_keys($debug['tokens']) as $token) {
$debug['values'][$token] = token_replace_multiple($token, $debug['data'], TOKEN_PREFIX, TOKEN_SUFFIX, $debug['options']);
}
variable_set('token_page_tokens', $debug);
}
}