Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

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

edited June 2008 in Vanilla 1.0 Help
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.


  • Options
    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.