summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-10 21:55:36 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-10 21:55:36 -0700
commitaf4411a44750b373916b841e01dac8ab434be68c (patch)
tree028ae7909a38c46246a5b8145a9d41b6053ef8d9 /modules
parent882a6d9a5dbf04ac26e046713f47068cd1361b74 (diff)
Put the buttons for album/photo dialogs in their own group in the form
so that they appear at the end, after any other groups that other modules add. Thanks Glooper!
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/album.php1
-rw-r--r--modules/gallery/helpers/photo.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php
index bae480b7..dfb1e66d 100644
--- a/modules/gallery/helpers/album.php
+++ b/modules/gallery/helpers/album.php
@@ -152,6 +152,7 @@ class album_Core {
module::event("item_edit_form", $parent, $form);
+ $group = $form->group("buttons")->label("");
$group->hidden("type")->value("album");
$group->submit("")->value(t("Modify"));
$form->add_rules_from(ORM::factory("item"));
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php
index a56c7e3c..3d9fbe69 100644
--- a/modules/gallery/helpers/photo.php
+++ b/modules/gallery/helpers/photo.php
@@ -178,6 +178,7 @@ class photo_Core {
module::event("item_edit_form", $photo, $form);
+ $group = $form->group("buttons")->label("");
$group->submit("")->value(t("Modify"));
$form->add_rules_from(ORM::factory("item"));
return $form;