template_preprocess_comment_wrapper

Versions
6 – 7
template_preprocess_comment_wrapper(&$variables)

Process variables for comment-wrapper.tpl.php.

See also

comment-wrapper.tpl.php

@see theme_comment_wrapper()

Code

modules/comment/comment.module, line 1816

<?php
function template_preprocess_comment_wrapper(&$variables) {
  // Provide contextual information.
  $variables['display_mode']  = _comment_get_display_setting('mode', $variables['node']);
  $variables['display_order'] = _comment_get_display_setting('sort', $variables['node']);
  $variables['comment_controls_state'] = variable_get('comment_controls_'. $variables['node']->type, COMMENT_CONTROLS_HIDDEN);
  $variables['template_files'][] = 'comment-wrapper-'. $variables['node']->type;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.