Add a note on portability to the hooks documentation