WIP #882 Add more hooks v2

Adds one more hook in global.php