Rename `hooks` to `activate` in hooks code sample

I'm not sure, if `hooks` was there on purpose, but if it was, it would need additional explainations.