summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-22 12:58:23 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-22 13:00:08 -0700
commitdc80cde379edfd8c2d5c875363e801c9228f3e5e (patch)
treea68a989a7556a8d667dd450ba29e8c116f94c60c /modules/comment/helpers
parentadc4061125f8a82f7fef0dc3ebbc2fe24bcbd5ae (diff)
Add "captcha_protect_form" event that the recaptcha module grabs and
uses to add a captcha to the end of the first group in the form. If there are no groups, it adds the captcha at the end of the form. Updated user_profile and comment forms to use it.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 92a286c7..7aa007cb 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -45,6 +45,7 @@ class comment_Core {
->error_messages("required", t("You must enter a comment"));
$group->hidden("item_id")->value($item->id);
module::event("comment_add_form", $form);
+ module::event("captcha_protect_form", $form);
$group->submit("")->value(t("Add"))->class("ui-state-default ui-corner-all");
return $form;