aboutsummaryrefslogtreecommitdiff
path: root/actions/photos
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-02 21:00:16 -0500
committercash <cash.costello@gmail.com>2012-01-02 21:00:16 -0500
commit83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6 (patch)
treee77fc18ea6b9402be0a653aeaf152b9231bad153 /actions/photos
parentbe94a34e652571eb61c3e306abfb7cce673823d7 (diff)
downloadelgg-83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6.tar.gz
elgg-83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6.tar.bz2
sorting albums added back
Diffstat (limited to 'actions/photos')
-rw-r--r--actions/photos/album/sort.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/photos/album/sort.php b/actions/photos/album/sort.php
new file mode 100644
index 000000000..613747784
--- /dev/null
+++ b/actions/photos/album/sort.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Sorting album action - takes a comma separated list of image guids
+ */
+
+$album_guid = get_input('album_guid');
+$album = get_entity($album_guid);
+if (!$album) {
+
+}
+
+$guids = get_input('guids');
+$guids = explode(',', $guids);
+
+$album->setImageList($guids);
+
+system_message(elgg_echo('tidypics:album:sorted', array($album->title)));
+forward($album->getURL()); \ No newline at end of file