From 98664daa72a390fe760b69116af8bfa9327826e3 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Nov 2011 18:43:35 -0500 Subject: album creation and editing is working --- actions/photos/album/save.php | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 actions/photos/album/save.php (limited to 'actions/photos/album') diff --git a/actions/photos/album/save.php b/actions/photos/album/save.php new file mode 100644 index 000000000..cc7181678 --- /dev/null +++ b/actions/photos/album/save.php @@ -0,0 +1,48 @@ +container_guid = $container_guid; +$album->owner_guid = elgg_get_logged_in_user_guid(); +$album->access_id = $access_id; +$album->title = $title; +$album->description = $description; +if ($tags) { + $album->tags = string_to_tag_array($tags); +} + +if (!$album->save()) { + register_error(elgg_echo("album:error")); + forward(REFERER); +} + +elgg_clear_sticky_form('tidypics'); + +system_message(elgg_echo("album:created")); +forward($album->getURL()); -- cgit v1.2.3