function nodesinblock_block_view in Nodes In Block 7
Implements hook_block_view().
File
- ./
nodesinblock.module, line 247 - Nodes in block makes it possible to add multiple nodes in one block.
Code
function nodesinblock_block_view($delta = '') {
$a = $delta + 1;
$content = _nodesinblock_show($delta, variable_get('nodesinblock_visibility_' . $delta, '1'));
$title = check_plain(variable_get('nodesinblock_friendlyname_' . $delta, t('Nodes in block ' . $a)));
$block = array(
'subject' => $title,
'content' => $content,
);
return $block;
}