diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-02-25 12:16:53 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-02-25 12:16:53 +0000 |
commit | 4e0c1576475390faa2f1fb4c4dc2902a953f440e (patch) | |
tree | cd3a47df019344d7f6c938ebe31c60cfa9b03677 /edit_multi.php | |
download | elgg-4e0c1576475390faa2f1fb4c4dc2902a953f440e.tar.gz elgg-4e0c1576475390faa2f1fb4c4dc2902a953f440e.tar.bz2 |
First commit
Diffstat (limited to 'edit_multi.php')
-rw-r--r-- | edit_multi.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/edit_multi.php b/edit_multi.php new file mode 100644 index 000000000..2fdc85e42 --- /dev/null +++ b/edit_multi.php @@ -0,0 +1,33 @@ +<?php
+ /**
+ * Elgg image multi edit
+ *
+ * @package ElggFile
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+ gatekeeper();
+ set_context('photos');
+ $file_string = get_input('files');
+ $file_array_sent = explode('-', $file_string);
+ $new_file_array = array();
+
+ foreach($file_array_sent as $file_guid){
+ if ($entity = get_entity($file_guid)){
+ if($entity->canEdit()){
+ array_push($new_file_array, $file_guid);
+ }
+ if(!$album_guid) $album_guid = $entity->container_guid;
+
+ }
+ }
+
+ $area2 .= elgg_view_title($title = elgg_echo('image:edit'));
+ $area2 .= elgg_view("tidypics/forms/edit_multi", array('file_array' => $new_file_array, 'album_guid' => $album_guid));
+ $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
+ page_draw(elgg_echo("edit"), $body);
+?>
\ No newline at end of file |