summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/album.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-07 16:19:41 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-07 16:21:58 -0700
commit795675e2b5eeee30d90e2efdda28c3df10677af3 (patch)
treeb06d3c284c9f6b8a9e91f958d9a13f2e0272785f /modules/gallery/helpers/album.php
parent991bb0c06319a4d1d0ed1194826f5438a97964b6 (diff)
Add the slug to album, photo, and movie forms.
Diffstat (limited to 'modules/gallery/helpers/album.php')
-rw-r--r--modules/gallery/helpers/album.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php
index 78c5062f..d995b6ad 100644
--- a/modules/gallery/helpers/album.php
+++ b/modules/gallery/helpers/album.php
@@ -100,6 +100,7 @@ class album_Core {
$group->input("name")->label(t("Directory Name"))
->callback("item::validate_no_slashes")
->error_messages("no_slashes", t("The directory name can't contain the \"/\" character"));
+ $group->input("slug")->label(t("Internet Address"));
$group->hidden("type")->value("album");
$group->submit("")->value(t("Create"));
$form->add_rules_from(ORM::factory("item"));
@@ -122,6 +123,7 @@ class album_Core {
->error_messages("no_slashes", t("The directory name can't contain a \"/\""))
->callback("item::validate_no_trailing_period")
->error_messages("no_trailing_period", t("The directory name can't end in \".\""));
+ $group->input("slug")->label(t("Internet Address"))->value($parent->slug);
}
$sort_order = $group->group("sort_order", array("id" => "gAlbumSortOrder"))