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.
Merge pull request #1146 from bendlas/patch-1

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