function advanced_forum_preprocess_comment_wrapper in Advanced Forum 6
Same name and namespace in other branches
- 5 advanced_forum.module \advanced_forum_preprocess_comment_wrapper()
- 6.2 includes/theme.inc \advanced_forum_preprocess_comment_wrapper()
- 7.2 includes/theme.inc \advanced_forum_preprocess_comment_wrapper()
File
- ./
advanced_forum.module, line 573 - Enables the look and feel of other popular forum software.
Code
function advanced_forum_preprocess_comment_wrapper(&$variables) {
if (advanced_forum_treat_as_forum_post('comment-wrapper', $variables)) {
$variables['template_files'][] = 'advf-comment-wrapper';
$variables['reply_link'] = '';
if ($variables['node']->comment != COMMENT_NODE_READ_WRITE || variable_get('comment_form_location_' . $variables['node']->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
// If the post is locked or the comment form is on a seperate page, build
// the reply/locked link / button
$variables['reply_link'] = theme('advanced_forum_reply_link', $variables['node']);
}
}
}