I don't like polluting the global namespace so much. The hooks are used so rarely that it's not worth the few saved keystrokes.
What is more intriguing is (yet another) function signature:
What is more intriguing is (yet another) function signature:
cPluginManager.AddHook(HOOK_TYPE); -- CallbackFunction is assumed to be named the same as in the old APII'm still not sure, it'd make coding easier, but it's not good for maintenance, the line doesn't say anything about the function that will be called, it'd be confusing to the beginners.