• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Ways to leave addon data while addon uninstall


Well-known member
What would be the best way to do to implement a OPTIONAL feature, to NOT delete the custom addon data (tables)

  protected function _postDelete()
     if ($this->get('uninstall_callback_class') && $this->get('uninstall_callback_method'))
         array($this->get('uninstall_callback_class'), $this->get('uninstall_callback_method')),

     $addOnModel = $this->_getAddOnModel();

because the addon datawriter calls the uninstall callback BEFORE the addon data get deleted i was thinking about a on/off acp option for this.

Anybody using this already, or an similar way?