diff options
author | mistic100 <mistic@piwigo.org> | 2011-11-05 22:56:13 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-11-05 22:56:13 +0000 |
commit | 5e8423c38bd6e010fa508ebaade9e7a4d4fbec10 (patch) | |
tree | c86bbad76f5f2f04fc0206a4267c0845c7cf28f6 /include | |
parent | e859d5ac6d43f75ecaa663f0b5a1e7340231dca6 (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 'include')
-rw-r--r-- | include/functions_comment.inc.php | 4 |
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 |