Solved by albanD in post #4 
              
              
                Yes, the hook is given the grad as the argument. 
Note that if you want to modify the gradient that is saved in the .grad field, you can return the new value from the hook and it will be used.