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
@@ -21,7 +21,7 @@ class Logout_Controller extends Controller {
public function index() {
try {
Session::instance()->destroy();
Event::run("gallery.user.logout", $user);
module::event("user_logout", $user);
} catch (Exception $e) {
Kohana::log("error", $e);
}