MyBB Community Forums

Full Version: hooks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
on hooks site
http://docs.mybb.com/1.8/development/plugins/hooks/

is all hooks?
no
admin_config_menu
admin_config_permissions
No. Hooks (and also some other docs) are still outdated.
I guess I should update that seeing as it uses my tool Wink I'll do so tomorrow.
A list with all hooks in 1.8.0 is available on mybboard.de: https://www.mybboard.de/doku/sonstiges/i...hook-liste
Updated.
(2014-10-10, 06:43 PM)Euan T Wrote: [ -> ]Updated.

Are you sure? This is still missing for example: https://github.com/mybb/mybb/blob/featur....php#L2867
It was when I updated it Smile
(2014-11-11, 08:16 AM)Euan T Wrote: [ -> ]It was when I updated it Smile

This hook is there since 1.7.x betas afaik, if that's what you meant. Another missing one from that file is this:
https://github.com/mybb/mybb/blob/featur....php#L3595
And it has already been available in 1.6.x:
https://github.com/mybb/mybb/blob/master....php#L3040

So the script that automatically finds the hooks probably fails somewhere.
Strange, I'll have to look into that one and run it again. Good catch!
Yep, just found a bug in my regex to catch calls to run_hooks. Will have to patch that one tomorrow.

EDIT: Patched and docs updated. Sorry about that!
Pages: 1 2