I need to run some code when the user clicks Edit on a node to clear out some session variables.
Is there a hook for this?

I can't seem to find it!

Comments

Jaypan’s picture

Not really - you could maybe do something in hook_form_alter().

Why don't you tell us more about your situation, maybe we can offer an alternative.