aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-31 20:03:50 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-31 20:03:50 +0000
commit243e836190128b14e1c5aa53b6d01b6771b19d8c (patch)
tree7e426606f124790c6ec31dc5da0c7f09a41dcc67 /actions
parent92ec25ec441330323e4fcbdfa33ebcf900420097 (diff)
downloadelgg-243e836190128b14e1c5aa53b6d01b6771b19d8c.tar.gz
elgg-243e836190128b14e1c5aa53b6d01b6771b19d8c.tar.bz2
First cut at a album sorting interface
Diffstat (limited to 'actions')
-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