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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.