aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/actions/delete.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 17:52:18 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 17:52:18 +0000
commite4158cbf4159183b7d9362cf30c7fd5dfb1d877a (patch)
treed4f33641da43b059e4921638907f212212b2be09 /mod/reportedcontent/actions/delete.php
parentd7f37fc752418661e0dadae8dfc40f07e7603740 (diff)
downloadelgg-e4158cbf4159183b7d9362cf30c7fd5dfb1d877a.tar.gz
elgg-e4158cbf4159183b7d9362cf30c7fd5dfb1d877a.tar.bz2
updated reported content to use elgg_view_form
git-svn-id: http://code.elgg.org/elgg/trunk@8166 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/actions/delete.php')
-rw-r--r--mod/reportedcontent/actions/delete.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/mod/reportedcontent/actions/delete.php b/mod/reportedcontent/actions/delete.php
deleted file mode 100644
index f7d4e2107..000000000
--- a/mod/reportedcontent/actions/delete.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/**
- * Elgg reported content: delete action
- *
- * @package ElggReportedContent
- */
-
-$guid = (int) get_input('guid');
-
-$report = get_entity($guid);
-
-// Make sure we actually have permission to delete
-if ($report->getSubtype() == "reported_content" && $report->canEdit()) {
-
- // give another plugin a chance to override
- if (!elgg_trigger_plugin_hook('reportedcontent:delete', 'system', array('report' => $report), TRUE)) {
- register_error(elgg_echo("reportedcontent:notdeleted"));
- forward(REFERER);
- }
-
- if ($report->delete()) {
- system_message(elgg_echo("reportedcontent:deleted"));
- } else {
- register_error(elgg_echo("reportedcontent:notdeleted"));
- }
-
- forward(REFERER);
-}