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/user/controllers | |
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/user/controllers')
-rw-r--r-- | modules/user/controllers/logout.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/controllers/logout.php b/modules/user/controllers/logout.php index c9ad1b6a..19a8450b 100644 --- a/modules/user/controllers/logout.php +++ b/modules/user/controllers/logout.php @@ -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); } |