From 828f23896f820f826b803b35c506f8e764504a18 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 28 Nov 2008 00:51:38 +0000 Subject: Rename item events and create events for comment create, login, logout, user creation. I probably forgot some, but its a start. --- modules/comment/helpers/comment.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 099a3833..8bbb68d6 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -31,7 +31,7 @@ class comment_Core { const SECONDS_IN_A_YEAR = 31556926; /** - * Create a new photo. + * Create a new comment. * @param string $author author's name * @param string $email author's email * @param string $text comment body @@ -51,7 +51,10 @@ class comment_Core { $comment->datetime = $datetime; $comment->item_id = $item_id; - return $comment->save(); + $comment->save(); + Event::run("gallery.comment.created", $comment); + + return $comment; } static function get_add_form($item_id) { -- cgit v1.2.3