From c2a680f932b589ada25a5c4c95523ffe07976b79 Mon Sep 17 00:00:00 2001 From: Sem Date: Sun, 6 Nov 2011 01:30:19 +0100 Subject: Reordered actions (deleted some). --- actions/videolist/edit.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 actions/videolist/edit.php (limited to 'actions/videolist/edit.php') diff --git a/actions/videolist/edit.php b/actions/videolist/edit.php new file mode 100644 index 000000000..3aa536e4c --- /dev/null +++ b/actions/videolist/edit.php @@ -0,0 +1,40 @@ +username); + exit; +} + +$result = false; + +$container_guid = $video->container_guid; +$container = get_entity($container_guid); + +if ($video->canEdit()) { + + $video->access_id = $access_id; + $video->title = $title; + + // Save tags + $tags = explode(",", $tags); + $video->tags = $tags; + $result = $video->save(); +} + +if ($result) + system_message(elgg_echo("videolist:editsaved")); +else + register_error(elgg_echo("videolist:editfailed")); + +forward($_SERVER['HTTP_REFERER']); -- cgit v1.2.3