If I might offer a suggestion... if were to add custom hooks in my code and upgrade my forums later, I would want to be able to find my hooks I entered easily so I can re-enter them if needed.
My suggestion:
Instead of doing this:
PHP Code:
($hook = vBulletinHook::fetch_hook('hook_name')) ? eval($hook) : false;
I would do this instead:
PHP Code:
($customhook = vBulletinHook::fetch_hook('hook_name')) ? eval($customhook) : false;
Of course, there is absolutely nothing wrong the other way, but this way I can search for $customhook and know exactly what was added instead of searching through all of the $hook lines.
Only a thought I would share. Noone has to use it! :nervous: