mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 06:01:23 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user