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 /core/helpers/album.php | |
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 'core/helpers/album.php')
-rw-r--r-- | core/helpers/album.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php index 8998c8d0..fb79015e 100644 --- a/core/helpers/album.php +++ b/core/helpers/album.php @@ -70,7 +70,7 @@ class album_Core { $group->input("title")->label(t("Title")); $group->textarea("description")->label(t("Description")); $group->hidden("type")->value("album"); - $group->submit(t("Create")); + $group->submit("")->value(t("Create")); $form->add_rules_from(ORM::factory("item")); return $form; } @@ -85,7 +85,7 @@ class album_Core { $group->input("title")->label(t("Title"))->value($parent->title); $group->textarea("description")->label(t("Description"))->value($parent->description); $group->hidden("type")->value("album"); - $group->submit(t("Modify")); + $group->submit("")->value(t("Modify")); $form->add_rules_from(ORM::factory("item")); return $form; } |