summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-29 09:21:07 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-29 09:21:07 -0700
commitbfafef95e8090b66f3322f73e532056b10ca116a (patch)
treeda84d4327946efd0e67abf5922f4630fd47c467d /modules/comment/helpers/comment.php
parent53dd35b5c8e741511d5bdc1ed35769d4ce281fe0 (diff)
Generalize the adding of the recaptcha form by changing the name of the event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha.
Diffstat (limited to 'modules/comment/helpers/comment.php')
-rw-r--r--modules/comment/helpers/comment.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 35685d8c..37b11206 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -72,7 +72,7 @@ class comment_Core {
$group->input("url") ->label(t("Website (hidden)"))->id("g-url");
$group->textarea("text")->label(t("Comment")) ->id("g-text");
$group->hidden("item_id")->value($item->id);
- module::event("comment_add_form", $form);
+ module::event("recaptcha_add", $form);
$group->submit("")->value(t("Add"))->class("ui-state-default ui-corner-all");
$active = identity::active_user();