I am trying to execute a function in my module when the module is activated or deactivated by the user. It seems that there is a hook for this in Drupal 7, but not in Drupal 6. It is possible to do this with a workaround in Drupal 6?

1 Answer 1


The docs say that hook_enable() and hook_disable() are for versions 5-7.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.