diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-21 01:31:29 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-21 01:31:29 +0000 |
commit | a9e3692027dc767b340242ed18fe7184cbfd883d (patch) | |
tree | 125e9d3cdb28c5acdd34e1bc15fe80df030bf8e7 /core/helpers/core_event.php | |
parent | f24c8f66ea9673d812c882dd7db6fbe49bd01dfb (diff) |
1) This provides the editting functionality for albums and photos in the
organize feature.
2) Remove the tag functionality at this point
3) Added a callback to handle validating conflicting names (only used
by organize at this point.
4) Closes #231
Diffstat (limited to 'core/helpers/core_event.php')
-rw-r--r-- | core/helpers/core_event.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/core/helpers/core_event.php b/core/helpers/core_event.php index c9e4e743..d1869360 100644 --- a/core/helpers/core_event.php +++ b/core/helpers/core_event.php @@ -44,19 +44,12 @@ class core_event_Core { ->in("id", $event_parms->itemids[0]) ->find(); - $generalPane = new View("organize_edit_general.html"); - $generalPane->item = $item; - $event_parms->panes[] = array("label" => $item->is_album() ? t("Edit Album") : t("Edit Photo"), - "content" => $generalPane); + "content" => core_organize::getGeneralEditForm($item)); if ($item->is_album()) { - $sortPane = new View("organize_edit_sort.html"); - $sortPane->sort_by = $item->sort_column; - $sortPane->sort_order = - empty($item->sort_order) || $item->sort_order == "ASC" ? t("Ascending") : t("Descending"); - - $event_parms->panes[] = array("label" => t("Sort Order"), "content" => $sortPane); + $event_parms->panes[] = array("label" => t("Sort Order"), + "content" => core_organize::getSortEditForm($item)); } } |