You are here

function theme_comment_thread_expanded in Drupal 4

Same name and namespace in other branches
  1. 5 modules/comment/comment.module \theme_comment_thread_expanded()
  2. 6 modules/comment/comment.module \theme_comment_thread_expanded()
1 theme call to theme_comment_thread_expanded()
comment_render in modules/comment.module

File

modules/comment.module, line 1586
Enables users to comment on published content.

Code

function theme_comment_thread_expanded($comment) {
  $output = '';
  if ($comment->depth) {
    $output .= '<div style="margin-left:' . $comment->depth * 25 . "px;\">\n";
  }
  $output .= theme('comment_view', $comment, module_invoke_all('link', 'comment', $comment, 0));
  if ($comment->depth) {
    $output .= "</div>\n";
  }
  return $output;
}