function token_block_view_alter in Token 7
Same name and namespace in other branches
- 8 token.module \token_block_view_alter()
Implements hook_block_view_alter().
File
- ./
token.module, line 249 - Enhances the token API in core: adds a browseable UI, missing tokens, etc.
Code
function token_block_view_alter(&$data, $block) {
if (!empty($block->title) && $block->title != '<none>') {
// Perform unsanitized token replacement since _block_render_blocks() will
// call check_plain() on $block->title.
$block->title = token_replace($block->title, array(), array(
'sanitize' => FALSE,
));
}
}