Fix code example for custom hook

Change-Id: I6f5b97266db55b5cda9a78390949290dcb2a93f2
Reviewed-on: http://gerrit.causes.com/42168
Tested-by: jenkins <jenkins@causes.com>
Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>