template_preprocess_comment_wrapper

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 7 template_preprocess_comment_wrapper(&$variables)

Process variables for comment-wrapper.tpl.php.

See also

comment-wrapper.tpl.php

theme_comment_wrapper()

Code

modules/comment/comment.module, line 2371

<?php
function template_preprocess_comment_wrapper(&$variables) {
  // Provide contextual information.
  $variables['node'] = $variables['content']['#node'];
  $variables['display_mode'] = variable_get('comment_default_mode_' . $variables['node']->type, COMMENT_MODE_THREADED);
  // The comment form is optional and may not exist.
  $variables['content'] += array('comment_form' => array());
}
?>