aboutsummaryrefslogtreecommitdiff
path: root/mod/lightpics/views/default/forms/photos/batch/edit.php
blob: d843d8349051be937db71b0a8113dce1f741a7a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
 * Edit properties on a batch of images
 *
 * @uses $vars['batch'] ElggObject
 * 
 * @author Cash Costello
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
 */

$batch = $vars['batch'];
$album = $batch->getContainerEntity();

$images = elgg_get_entities_from_relationship(array(
	'type' => 'object',
	'subtype' => 'image',
	'relationship' => 'belongs_to_batch',
	'relationship_guid' => $batch->getGUID(),
	'inverse_relationship' => true,
	'limit' => 0
));

echo '<ul>';
foreach ($images as $image) {
	echo '<li>';
	echo elgg_view('forms/photos/batch/edit/image', array('entity' => $image));
	echo '</li>';
}
echo '</ul>';

echo '<div class="elgg-foot">';
echo elgg_view('input/submit', array('value' => elgg_echo('save')));
echo '</div>';