garland_preprocess_comment_wrapper
- Versions
- 6
garland_preprocess_comment_wrapper(&$vars)
Add a "Comments" heading above comments except on forum pages.
Code
themes/garland/template.php, line 54
<?php
function garland_preprocess_comment_wrapper(&$vars) {
if ($vars['content'] && $vars['node']->type != 'forum') {
$vars['content'] = '<h2 class="comments">'. t('Comments') .'</h2>'. $vars['content'];
}
}
?>Login or register to post comments 