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.

This commit is contained in:
Tim Almdal
2009-10-29 09:21:07 -07:00
parent 53dd35b5c8
commit bfafef95e8
2 changed files with 2 additions and 2 deletions

View File

@@ -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();