diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-28 00:51:38 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-28 00:51:38 +0000 |
commit | 828f23896f820f826b803b35c506f8e764504a18 (patch) | |
tree | 89e0a448eddf08dd541a9dfef3337c6e22425479 /modules/comment/helpers | |
parent | 3ad9b6174a0adcc3d9b6e4ae007bd3ffd8ef2d26 (diff) |
Rename item events and create events for comment create, login, logout, user creation. I probably forgot some, but its a start.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 7 |
1 files changed, 5 insertions, 2 deletions
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) { |