function token_render_array_value in Token 7
Same name and namespace in other branches
- 8 token.module \token_render_array_value()
Do not use this function yet. Its API has not been finalized.
1 call to token_render_array_value()
- token_tokens in ./
token.tokens.inc - Implements hook_tokens().
File
- ./
token.module, line 1179 - Enhances the token API in core: adds a browseable UI, missing tokens, etc.
Code
function token_render_array_value($value, array $options = array()) {
$rendered = is_array($value) ? render($value) : (string) $value;
if (!empty($options['sanitize'])) {
$rendered = check_plain($rendered);
}
return $rendered;
}