aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/actions/archive.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/actions/archive.php')
-rw-r--r--mod/reportedcontent/actions/archive.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/reportedcontent/actions/archive.php b/mod/reportedcontent/actions/archive.php
index 144b6b864..6f4a41226 100644
--- a/mod/reportedcontent/actions/archive.php
+++ b/mod/reportedcontent/actions/archive.php
@@ -21,6 +21,10 @@
if ($reported->getSubtype() == "reported_content" && $reported->canEdit()) {
// change the state
+ if (!trigger_plugin_hook('reportedcontent:archive', $entity->type, array('entity'=>$entity), true)) {
+ system_message(elgg_echo("reportedcontent:notarchived"));
+ forward("pg/reportedcontent/");
+ }
$reported->state = "archived";
// Success message