function template_preprocess_comment_wrapper
template_preprocess_comment_wrapper(&$variables)
Process variables for comment-wrapper.tpl.php.
See also
File
- modules/comment/comment.module, line 2407
- Enables users to comment on published content.
Code
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()); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/template_preprocess_comment_wrapper/7.x