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.
This commit is contained in:
Bharat Mediratta
2008-11-28 19:37:01 +00:00
parent 1b1d385294
commit 8b6ed6c477
10 changed files with 69 additions and 41 deletions
+1 -1
View File
@@ -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;
}