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/photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/photo.php') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index 749efb87..63845612 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -102,7 +102,7 @@ class photo_Core { $group->textarea("description")->label(t("Description")); $group->upload("file")->label(t("File"))->rules("required|allow[jpg,png,gif]"); $group->hidden("type")->value("photo"); - $group->submit(t("Upload")); + $group->submit("")->value(t("Upload")); $form->add_rules_from(ORM::factory("item")); return $form; } @@ -114,7 +114,7 @@ class photo_Core { $group->input("name")->label(t("Name"))->value($photo->name); $group->input("title")->label(t("Title"))->value($photo->title); $group->textarea("description")->label(t("Description"))->value($photo->description); - $group->submit(t("Modify")); + $group->submit("")->value(t("Modify")); $form->add_rules_from(ORM::factory("item")); return $form; } -- cgit v1.2.3