Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By CabKab on
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
Not really - you could maybe
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.