]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/event.php
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
[quix0rs-gnu-social.git] / lib / event.php
index 4819b71b4c10968343e101f69e59970140110c6b..41fb53ffe9afe91312c3d2fa4799bede44ea6091 100644 (file)
@@ -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();
+    }
 }