aboutsummaryrefslogtreecommitdiff
path: root/actions/delete.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
commit059badecbc0be895c6165430e5096a9ab653027e (patch)
tree6fd90dce93b43371366c4792622af5f73cb55075 /actions/delete.php
downloadelgg-059badecbc0be895c6165430e5096a9ab653027e.tar.gz
elgg-059badecbc0be895c6165430e5096a9ab653027e.tar.bz2
Squashed 'mod/livestream/' content from commit 89d1f38
git-subtree-dir: mod/livestream git-subtree-split: 89d1f3877f241f34e3ed3baad3c9ee9a4fee79e7
Diffstat (limited to 'actions/delete.php')
-rwxr-xr-xactions/delete.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/actions/delete.php b/actions/delete.php
new file mode 100755
index 000000000..bd4757f55
--- /dev/null
+++ b/actions/delete.php
@@ -0,0 +1,15 @@
+<?php
+ require_once "{$CONFIG->pluginspath}livestream/libraries.php";
+
+ // get object guid from URL
+ $object_guid = get_input('stream_id');
+ $container_name = livestream_get_container_name($object_guid);
+
+ if(livestream_delete($object_guid)){
+ forward('livestream/'.$container_name);
+ }else{
+ elgg_echo ("livestream:internal_error");
+
+ }
+
+?>