function block_token_block_render in Block Token 7
Same name and namespace in other branches
- 8 block_token.module \block_token_block_render()
Renders the block.
Parameters
string $module: Module name.
string $delta: Block delta.
Return value
string Rendered block.
1 call to block_token_block_render()
- block_token_tokens in ./
block_token.module - Implements hook_tokens().
File
- ./
block_token.module, line 67 - The file contains Block Token module code.
Code
function block_token_block_render($module, $delta) {
$block = block_load($module, $delta);
foreach (array(
'region',
'title',
) as $key) {
$block->{$key} = '';
}
$block = _block_render_blocks(array(
$block,
));
$block = _block_get_renderable_array($block);
return drupal_render($block);
}