It's not an answer to your question but, just in case, for researching hooks better to use Github wiki https://github.com/NodeBB/NodeBB/wiki