You are here

function template_preprocess_comment_wrapper in Drupal 6

Same name and namespace in other branches
  1. 7 modules/comment/comment.module \template_preprocess_comment_wrapper()

Process variables for comment-wrapper.tpl.php.

See also

comment-wrapper.tpl.php

File

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

Code

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;
}