V Valhalla Well-known member Dec 26, 2018 #1 Is there a way to interact with an addon being disabled? I wish to clear out a table upon the addon being disabled.
Is there a way to interact with an addon being disabled? I wish to clear out a table upon the addon being disabled.
Chris D XenForo developer Staff member Dec 27, 2018 #2 You just need a Setup class for your add-on with a method defined as follows: PHP: public function onActiveChange($newActive, array &$jobList) { if (!$newActive) { // do your thing } }
You just need a Setup class for your add-on with a method defined as follows: PHP: public function onActiveChange($newActive, array &$jobList) { if (!$newActive) { // do your thing } }