From ae73ef3d5743b2afba65db7d89e78b135d8c9090 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 12 Jan 2009 07:50:04 +0000 Subject: Updated for new Form_Submit API. OLD: $form->submit("Foo") --> New: $form->submit("foo_button")->("Foo") --> Mostly we don't care what the button is so we leave the name blank. --- core/helpers/album.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/album.php') 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; } -- cgit v1.2.3