aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/album/sort.php
blob: 453f51ac5b111e50cb5658b80208d1d90b2db9b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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->getTitle())));
forward($album->getURL());