diff options
author | Sarven Capadisli <csarven@status.net> | 2010-01-13 13:37:04 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-01-13 13:37:04 +0000 |
commit | 543026b8d1411c7d71a6482d0649ab3523f489b8 (patch) | |
tree | b4e4ac6a8f89411faf7a0cfd11fbe63a4a344a03 /lib/event.php | |
parent | 21512910c1d882b62f921154209e6f3c4792f03b (diff) | |
parent | c26246c4c3eb7fb4002e7280c0421ed2fa96b767 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/event.php')
-rw-r--r-- | lib/event.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/event.php b/lib/event.php index 4819b71b4..41fb53ffe 100644 --- a/lib/event.php +++ b/lib/event.php @@ -138,4 +138,12 @@ class Event { } return false; } + + /** + * Disables any and all handlers that have been set up so far; + * use only if you know it's safe to reinitialize all plugins. + */ + public static function clearHandlers() { + Event::$_handlers = array(); + } } |