You are here

function theme_headerimage_block in Header image 5

Default Header Image block theme

Parameters

$node: rendered array of node in teaser view

1 theme call to theme_headerimage_block()
headerimage_block in ./headerimage.module
Implementation of hook_block().

File

./headerimage.module, line 784
headerimage.module Conditionally display an node in a block.

Code

function theme_headerimage_block($node, $teaser = true) {
  if (!$node->status) {
    $output = '<div class="node-unpublished">';
  }
  if ($teaser && $node->teaser) {
    $output .= $node->teaser;
  }
  else {
    $output .= $node->body;
  }
  if (!$node->status) {
    $output .= '</div>';
  }
  return $output;
}