summaryrefslogtreecommitdiff
path: root/lib/event.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-01-13 23:10:00 +0100
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-01-13 23:10:00 +0100
commit108c51fa6859ec56269078ef9bd0459fdbd9b1ba (patch)
treec45dc1036d80ba0fdc58473819cde12bcc03eb32 /lib/event.php
parentf7f82982ec9a8671195efdc278c2987aa92c083c (diff)
parent25ed2d2c872e59fd99b54fdf0dec1ca448feca00 (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.php8
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();
+ }
}