aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-11-05 22:56:13 +0000
committermistic100 <mistic@piwigo.org>2011-11-05 22:56:13 +0000
commit5e8423c38bd6e010fa508ebaade9e7a4d4fbec10 (patch)
treec86bbad76f5f2f04fc0206a4267c0845c7cf28f6
parente859d5ac6d43f75ecaa663f0b5a1e7340231dca6 (diff)
feature:2495 add triggers for comment validation and deletion
git-svn-id: http://piwigo.org/svn/trunk@12556 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_comment.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php
index b2a4547d1..569ada0fc 100644
--- a/include/functions_comment.inc.php
+++ b/include/functions_comment.inc.php
@@ -222,6 +222,8 @@ $user_where_clause.'
'comment_id' => $comment_id
));
}
+
+ trigger_action('user_comment_deletion', $comment_id);
}
/**
@@ -384,5 +386,7 @@ UPDATE '.COMMENTS_TABLE.'
WHERE id = '.$comment_id.'
;';
pwg_query($query);
+
+ trigger_action('user_comment_validation', $comment_id);
}
?> \ No newline at end of file