diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-25 12:47:00 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-25 12:47:00 -0800 |
commit | 15cf6870d5a4fc4dae3c5b61b1cb16ccdc226821 (patch) | |
tree | bbcef4fc7af54f7b42425edbfbe4244f6c2031df /modules/gallery | |
parent | 2d5c232c42ea52e0c1115dd93edafecf1978fbfe (diff) |
remove the photo::get_add_form method as its not used
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/helpers/photo.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php index 3f41097c..4188e192 100644 --- a/modules/gallery/helpers/photo.php +++ b/modules/gallery/helpers/photo.php @@ -137,25 +137,6 @@ class photo_Core { return $photo; } - static function get_add_form($parent) { - $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "g-add-photo-form")); - $group = $form->group("add_photo")->label( - t("Add Photo to %album_title", array("album_title" => $parent->title))); - $group->input("title")->label(t("Title")); - $group->textarea("description")->label(t("Description")); - $group->input("name")->label(t("Filename")); - $group->input("slug")->label(t("Internet Address"))->value($photo->slug) - ->callback("item::validate_url_safe") - ->error_messages( - "not_url_safe", - t("The internet address should contain only letters, numbers, hyphens and underscores")); - $group->upload("file")->label(t("File"))->rules("required|allow[jpg,png,gif,flv,mp4]"); - $group->hidden("type")->value("photo"); - $group->submit("")->value(t("Upload")); - $form->add_rules_from(ORM::factory("item")); - return $form; - } - static function get_edit_form($photo) { $form = new Forge("photos/update/$photo->id", "", "post", array("id" => "g-edit-photo-form")); $form->hidden("_method")->value("put"); |