Cleanup typo and change what is passwed into the event. pass the group that the recaptch element should be attached to instead of the whole form. This allows the recaptch event to have no knowledge of the containing form.

This commit is contained in:
Tim Almdal
2009-10-29 09:27:44 -07:00
parent bfafef95e8
commit e45ea9359d
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("recaptcha_add", $form);
module::event("recaptcha_add", $group);
$group->submit("")->value(t("Add"))->class("ui-state-default ui-corner-all");
$active = identity::active_user();