diff options
Diffstat (limited to 'mod/reportedcontent/actions/archive.php')
-rw-r--r-- | mod/reportedcontent/actions/archive.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/mod/reportedcontent/actions/archive.php b/mod/reportedcontent/actions/archive.php deleted file mode 100644 index dd5c6aef1..000000000 --- a/mod/reportedcontent/actions/archive.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php -/** - * Elgg reported content: archive action - * - * @package ElggReportedContent - */ - -$guid = (int) get_input('guid'); - -$report = get_entity($guid); - -// Make sure we actually have permission to edit -if ($report->getSubtype() == "reported_content" && $report->canEdit()) { - - // allow another plugin to override - if (!elgg_trigger_plugin_hook('reportedcontent:archive', 'system', array('report' => $report), TRUE)) { - system_message(elgg_echo("reportedcontent:notarchived")); - forward(REFERER); - } - - // change the state - $report->state = "archived"; - - system_message(elgg_echo("reportedcontent:archived")); - - forward(REFERER); -} |