XF 2.0 Clear table on addon disable

Valhalla

Well-known member
Is there a way to interact with an addon being disabled?

I wish to clear out a table upon the addon being disabled.
 
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
   }
}
 
Back
Top Bottom