Hi

When I add the following code to my template.php my application crashes each time

function phptemplate_headerimage_block($node, $teaser = true) {
if (!$node->status) {
$output = '

';
}

if (module_exists('taxonomy')) {
$terms = taxonomy_link('taxonomy terms', $node);
}

$output .= t('!title by !name', array('!title' => '

'. check_plain($node->title) .'

', '!name' => theme('username', $node)));

if (count($terms)) {
$output .= ' ('. theme('links', $terms) .')
';
}

if ($teaser && $node->teaser) {
$output .= $node->teaser;
}
else {
$output .= $node->body;
}

if ($node->links) {
$output .= '

';
}

if (!$node->status) {
$output .= '

';
}

return $output;
}

Please help...I need to theme the header image block and I have been stuck with this prob for quite sometime

Comments

sutharsan’s picture

Category: bug » support
Status: Active » Closed (fixed)

Next time try IRC for help.