From cb29f5f73e530b776002077f7c9afa45e094ff1c Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Feb 2009 15:29:16 +0000 Subject: Added plugin hook triggers to reportedcontent plugin. Fixes #725 git-svn-id: https://code.elgg.org/elgg/trunk@2646 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/reportedcontent/actions/archive.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/reportedcontent/actions/archive.php') 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 -- cgit v1.2.3