summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-27 08:21:54 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-27 08:21:54 +0000
commita30c28b5fc2ff8152de61c2c3440d9a7131deab8 (patch)
tree00ea514d5d4110fb5d03a6147cf1936f5cff6e38 /modules/comment/helpers/comment.php
parent2a9d48f8bb0acb75a2d8ed30eb85ae79f7933afa (diff)
Make the comment -> recaptcha binding happen via an event dispatch as
opposed to a direct call.
Diffstat (limited to 'modules/comment/helpers/comment.php')
-rw-r--r--modules/comment/helpers/comment.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 82b4f4b0..d2d5aee0 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -77,9 +77,7 @@ class comment_Core {
$group->input("url") ->label(t("Website (hidden)"))->id("gUrl");
$group->textarea("text")->label(t("Comment")) ->id("gText");
$group->hidden("item_id")->value($item->id);
- if (module::is_installed("recaptcha")) {
- $group->recaptcha("recaptcha")->label("")->id("gRecaptcha");
- }
+ module::event("comment_add_form", $form);
$group->submit("")->value(t("Add"));
$active = user::active();
@@ -103,9 +101,6 @@ class comment_Core {
$group->input("email") ->label(t("Email (hidden)")) ->id("gEmail");
$group->input("url") ->label(t("Website (hidden)"))->id("gUrl");
$group->textarea("text")->label(t("Comment")) ->id("gText");
- if (module::is_installed("recaptcha")) {
- $group->recaptcha("recaptcha")->label("")->id("gRecaptcha");
- }
$group->submit("")->value(t("Edit"));
$group->text = $comment->text;