function template_preprocess_headerimage_block in Header image 7
Same name and namespace in other branches
- 6 headerimage.module \template_preprocess_headerimage_block()
Process variables to format the headerimage block.
$variables contains:
- $node
- $teaser: TRUE = display node as teaser; FALSE = display full node
See also
File
- ./
headerimage.module, line 831 - headerimage.module Conditionally display an node in a block.
Code
function template_preprocess_headerimage_block(&$vars) {
$node = $vars['node'];
if (module_exists('ds') && variable_get('headerimage_module_ds', false)) {
$vars['content'] = drupal_render($node);
}
else {
$vars['content'] = drupal_render($node->content);
}
}