From 5e8423c38bd6e010fa508ebaade9e7a4d4fbec10 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 5 Nov 2011 22:56:13 +0000 Subject: feature:2495 add triggers for comment validation and deletion git-svn-id: http://piwigo.org/svn/trunk@12556 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_comment.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/functions_comment.inc.php') 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 -- cgit v1.2.3