summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-09 11:52:43 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-09 11:52:43 -0800
commit26f8240e3478802a505f6f5355741d30130c65c5 (patch)
tree601ad14613dc7e63e5f814e636951879c15b16a4 /modules/comment/helpers
parent8b07599ba916ea838c01639be821e91ba4018853 (diff)
Revert "Try an new approach to extending forms. Create an extend_form event. For the first attempt replace the comment_add_form and item_add_form events."
This reverts commit 809e738536b6639bb42ecae8eb1e183543fed93c.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index e2772707..35685d8c 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -72,11 +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);
-
- $extend_form = (object)array("data" => $item, "form" => $form, "id" => "g-comment-form",
- "append_to" => $group);
- module::event("extend_form", $extend_form);
-
+ module::event("comment_add_form", $form);
$group->submit("")->value(t("Add"))->class("ui-state-default ui-corner-all");
$active = identity::active_user();