##// END OF EJS Templates
Added Redmine::Plugin::Hook::Manager.clear_listeners to remove all hook listeners.
Eric Davis -
r1704:cb485c92efb4
parent child
Show More
@@ -192,6 +192,13 module Redmine #:nodoc:
192 end
192 end
193 end
193 end
194
194
195 # Removes all listeners
196 def clear_listeners()
197 @@hooks.each do |hook, registrations|
198 @@hooks[hook] = []
199 end
200 end
201
195 # Run all the hooks for +hook_name+ passing in +context+
202 # Run all the hooks for +hook_name+ passing in +context+
196 def call_hook(hook_name, context = { })
203 def call_hook(hook_name, context = { })
197 response = ''
204 response = ''
General Comments 0
You need to be logged in to leave comments. Login now