X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fevent.php;h=41fb53ffe9afe91312c3d2fa4799bede44ea6091;hb=f9b2feb7f563663d6b564a3cb9223b7c1ea5ecef;hp=4819b71b4c10968343e101f69e59970140110c6b;hpb=a08c76a4342cfb4b3d772f6880ba0b8f3153b246;p=quix0rs-gnu-social.git diff --git a/lib/event.php b/lib/event.php index 4819b71b4c..41fb53ffe9 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(); + } }