aboutsummaryrefslogtreecommitdiff
path: root/actions/sortalbum.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/sortalbum.php')
-rw-r--r--actions/sortalbum.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/sortalbum.php b/actions/sortalbum.php
new file mode 100644
index 000000000..1aa0e052f
--- /dev/null
+++ b/actions/sortalbum.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(sprintf(elgg_echo('tidypics:album:sorted'), $album->title));
+forward($album->getURL()); \ No newline at end of file