function template_preprocess_discussion_render_wrapper in Discuss This! 7.2
Same name and namespace in other branches
- 7 discussthis.discussion.inc \template_preprocess_discussion_render_wrapper()
File
- ./
discussthis.discussion.inc, line 283 - Functions to create/link/delete discussions.
Code
function template_preprocess_discussion_render_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(),
);
}