enjoylife
enjoylife

Reputation: 5479

drupal comment module

the comment-wrapper.tpl.php has the following code.

 <div id="comments">
<?php print $content; ?>
 </div>

where is the variable form? when i looked the template_preprocess_comment_wrapper function., there is no $content declared? why? thank you.

Upvotes: 0

Views: 200

Answers (1)

Berdir
Berdir

Reputation: 6891

See http://api.drupal.org/api/drupal/modules--comment--comment.module/function/comment_render/6 at the end.

It is directly passed to the theme function, so you can't change it there. This theme function is only used to wrap all comments into a given structure, a div by default. To alter single comments, use one of the inner theme functions like theme_comment_view or comment.tpl.php

Upvotes: 1

Related Questions