function template_preprocess_comment_wrapper
Same name and namespace in other branches
- 6.x drupal-6.x/modules/comment/comment.module \template_preprocess_comment_wrapper()
Process variables for comment-wrapper.tpl.php.
See also
Archivo
- drupal-7.x/
modules/ comment/ comment.module, line 2403 - Enables users to comment on published content.
Código
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());
}