Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 11

6apxatericgillettelortabacx00 +7 guests

is there a delegate for when the plugin is removed(unchecked)?

i just wondering if there a delegate to call when admins uncheck/remove the plugin? because some of the plugin will create databases table, it would be nice to have a delegate to call when the plugin is remove, so i can add some function in there to delete those tables.

Comments

  • Posts: 2,301
    You can find it in Framework/Framework.Control.ExtensionForm.php:$Context->AddToDelegate('ExtensionForm', 'PreExtensionDisable', 'YourUninstallFunction');
    And use the ExtensionName delegate parameter to make sure that the code only fires when disabling your extension.
This discussion has been closed.