diff options
Diffstat (limited to 'mod/reportedcontent/actions/delete.php')
-rw-r--r-- | mod/reportedcontent/actions/delete.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/reportedcontent/actions/delete.php b/mod/reportedcontent/actions/delete.php index 87ac0e40f..a4090fb19 100644 --- a/mod/reportedcontent/actions/delete.php +++ b/mod/reportedcontent/actions/delete.php @@ -21,6 +21,10 @@ if ($reported->getSubtype() == "reported_content" && $reported->canEdit()) {
// Delete it!
+ if (!trigger_plugin_hook('reportedcontent:delete', $entity->type, array('entity'=>$entity), true)) {
+ register_error(elgg_echo("reportedcontent:notdeleted"));
+ forward("pg/reportedcontent/");
+ }
$rowsaffected = $reported->delete();
if ($rowsaffected > 0) {
// Success message
|