aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/album/sort.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/photos/album/sort.php')
-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