diff options
author | cash <cash.costello@gmail.com> | 2012-01-02 21:00:16 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2012-01-02 21:00:16 -0500 |
commit | 83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6 (patch) | |
tree | e77fc18ea6b9402be0a653aeaf152b9231bad153 /actions/photos | |
parent | be94a34e652571eb61c3e306abfb7cce673823d7 (diff) | |
download | elgg-83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6.tar.gz elgg-83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6.tar.bz2 |
sorting albums added back
Diffstat (limited to 'actions/photos')
-rw-r--r-- | actions/photos/album/sort.php | 18 |
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 |