function printfriendly_block_view in PrintFriendly & PDF 7.2
Same name and namespace in other branches
- 7.5 printfriendly.module \printfriendly_block_view()
- 7 printfriendly.module \printfriendly_block_view()
- 7.3 printfriendly.module \printfriendly_block_view()
- 7.4 printfriendly.module \printfriendly_block_view()
Implements hook_block_view().
File
- ./
printfriendly.module, line 64 - Adds PrintFriendly button to chosen node types and provides a block.
Code
function printfriendly_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'printfriendly':
$block['subject'] = t('PrintFriendly');
$block['content'] = printfriendly_create_button();
break;
}
return $block;
}