Skip to content
Snippets Groups Projects
Commit 5ba09ac2 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

[#2159813] Remove comment form title hack.

parent d7af48ff
No related branches found
No related tags found
No related merge requests found
......@@ -39,16 +39,6 @@ function bluecheese_preprocess_comment(&$variables) {
$variables['title_attributes_array']['class'][] = 'comment-title';
}
/**
* Implementation of template_preprocess_comment_wrapper().
*/
function bluecheese_preprocess_comment_wrapper(&$variables) {
if (!empty($variables['content']['comment_form']) && empty($variables['comment_form_title'])) {
// Generate the 'Add new comment' form title if not present
$variables['comment_form_title'] = t('Add new comment');
}
}
/**
* Process variables for aggregator-item.tpl.php.
*
......
......@@ -13,7 +13,7 @@ $comments = render($content['comments']);
<?php print $comments; ?>
<?php if ($content['comment_form']): ?>
<h2 class="title comment-form"><?php print $comment_form_title; ?></h2>
<h2 class="title comment-form"><?php print t('Add new comment'); ?></h2>
<?php print render($content['comment_form']); ?>
<?php endif; ?>
</section>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment