Update advanced.rst
Merge pull request #1540 from libbkmz/master

Event hooks update