diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-24 17:26:47 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-24 17:26:47 +0000 |
| commit | cbff78daa8a642e1800916f92e43202857c3b677 (patch) | |
| tree | 1cb8302d4da07fbb384d44d94644088c718c6339 /core/helpers/photo.php | |
| parent | eed57674f99621e5354a13543067e9556eb9c6d0 (diff) | |
Supply a form id on all forms. This id can be used by modules other
than the originating module to provide additional functionality to the form.
Diffstat (limited to 'core/helpers/photo.php')
| -rw-r--r-- | core/helpers/photo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php index a2958aec..2b653481 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -96,7 +96,7 @@ class photo_Core { } static function get_add_form($parent) { - $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddPhotoForm")); + $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAdd_Photo_Form")); $group = $form->group("add_photo")->label(t("Add Photo to %album_title", array("album_title" =>$parent->title))); $group->input("name")->label(t("Name")); $group->input("title")->label(t("Title")); @@ -109,7 +109,7 @@ class photo_Core { } static function get_edit_form($photo) { - $form = new Forge("photos/$photo->id", "", "post", array("id" => "gEditPhotoForm")); + $form = new Forge("photos/$photo->id", "", "post", array("id" => "gEdit_Photo_Form")); $form->hidden("_method")->value("put"); $group = $form->group("edit_photo")->label(t("Edit Photo")); $group->input("name")->label(t("Name"))->value($photo->name); |
