diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-28 19:37:01 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-28 19:37:01 +0000 |
commit | 8b6ed6c477771e42d43ea0684e5139cf361b6cee (patch) | |
tree | 38c0db7b9d53e8ffb52f4ffaea05fdebbb248530 /modules/comment/helpers | |
parent | 1b1d3852949a39765a4c58df3bcbc9cd5a28e00e (diff) |
Create module::event() which runs Gallery events. It works by
convention. To respond to the "photo_created" event in the gmaps
module, you create modules/gmaps/helpers/gmaps_event.php containing
class gmaps_event which has function photo_created.
Renamed all events from gallery.foo.bar to foo_bar
Updated tag module to use new convention.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 8bbb68d6..8db2bda5 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -52,7 +52,7 @@ class comment_Core { $comment->item_id = $item_id; $comment->save(); - Event::run("gallery.comment.created", $comment); + module::event("comment_created", $comment); return $comment; } |