phptemplate_comment_wrapper

Definition

phptemplate_comment_wrapper($content, $type = null)
themes/garland/template.php, line 42

Description

Allow themable wrapping of all comments.

Code

<?php
function phptemplate_comment_wrapper($content, $type = null) {
  static $node_type;
  if (isset($type)) $node_type = $type;

  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.