You are here

function printfriendly_block_view in PrintFriendly & PDF 7

Same name and namespace in other branches
  1. 7.5 printfriendly.module \printfriendly_block_view()
  2. 7.2 printfriendly.module \printfriendly_block_view()
  3. 7.3 printfriendly.module \printfriendly_block_view()
  4. 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;
}