garland_preprocess_comment_wrapper

6 template.php garland_preprocess_comment_wrapper(&$vars)

Add a "Comments" heading above comments except on forum pages.

File

themes/garland/template.php, line 54

Code

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