phptemplate_comment_wrapper

Definition

phptemplate_comment_wrapper($content, $node)
themes/garland/template.php, line 42

Description

Allow themable wrapping of all comments.

Code

<?php
function phptemplate_comment_wrapper($content, $node) {
  if (!$content || $node->type == 'forum') {
    return '<div id="comments">'. $content .'</div>';
  }
  else {
    return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>';
  }
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.