plugins.registerHook removed, use plugins.hooks.register
plugins.unregisterHook removed, use plugins.hooks.unregister
plugins.fireHook removed, use plugins.hooks.fire
plugins.hasListeners removed, used plugins.hooks.hasListeners
0.6.0 Breaking Changes
-
Yes, all hooks use only a single param now.
No more
plugins.fireHook('someHookName', a, b, c, d, callback);
Not all the params are an object though like the one you posted.
-
@baris make every. Single. Hook. Have an object param. That way we will never ever need to worry about breaking changes again!
Seriously: consistency is the best possible thing you can have with software
-
Yeah agreed will try to get that in for 0.6.0
-
ohh ok thanks for making it clear
-
Updated with header.tpl changes, relevant thread https://community.nodebb.org/topic/3488/header-tpl-changes