| 6 comment.module | template_preprocess_comment_wrapper(&$variables) |
| 7 comment.module | template_preprocess_comment_wrapper(&$variables) |
| 8 comment.module | template_preprocess_comment_wrapper(&$variables) |
Process variables for comment-wrapper.tpl.php.
See also
File
- modules/
comment/ comment.module, line 1824 - 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;
}
Login or register to post comments