diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 07:50:04 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 07:50:04 +0000 |
commit | ae73ef3d5743b2afba65db7d89e78b135d8c9090 (patch) | |
tree | 52faf725a5756933a0547b2ea908a6d05051b1e4 /modules/comment/helpers | |
parent | b19729435cd918e03e1bd6fbb91f7281bf3e5873 (diff) |
Updated for new Form_Submit API.
OLD:
$form->submit("Foo") --> <input type="submit" value="Foo">
New:
$form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo">
Mostly we don't care what the button is so we leave the name blank.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index f6cbbe87..329d5ba3 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -73,7 +73,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); - $group->submit(t("Add")); + $group->submit("")->value(t("Add")); // Forge will try to reload any pre-seeded values upon validation if it's a post request, so // force validation before seeding values. @@ -99,7 +99,7 @@ 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"); - $group->submit(t("Edit")); + $group->submit("")->value(t("Edit")); $group->text = $comment->text; $author = $comment->author(); |