template_preprocess_comment_wrapper
modules/comment/comment.module, строка 1816
- Версии
- 6
template_preprocess_comment_wrapper(&$variables)
Process variables for comment-wrapper.tpl.php.
See also
comment-wrapper.tpl.php
@see theme_comment_wrapper()
Код
<?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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии