summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment.module4
-rw-r--r--modules/comment/comment.module4
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/comment.module b/modules/comment.module
index c8063cbc0..a7c8238ef 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1456,6 +1456,10 @@ function comment_form_submit($form_id, $form_values) {
*/
function theme_comment_form($form) {
+ if (!isset($form['#prefix'])) {
+ $form['#prefix'] = '';
+ }
+ $form['#prefix'] .= "<a id=\"comment-form\"></a>\n";
return form_render($form);
}
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index c8063cbc0..a7c8238ef 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1456,6 +1456,10 @@ function comment_form_submit($form_id, $form_values) {
*/
function theme_comment_form($form) {
+ if (!isset($form['#prefix'])) {
+ $form['#prefix'] = '';
+ }
+ $form['#prefix'] .= "<a id=\"comment-form\"></a>\n";
return form_render($form);
}