From 8b6ed6c477771e42d43ea0684e5139cf361b6cee Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 28 Nov 2008 19:37:01 +0000 Subject: 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. --- modules/user/controllers/logout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/controllers/logout.php') 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); } -- cgit v1.2.3