include/onuninstall.php
<?php
/**
* uninstall.php - cleanup on module uninstall
*
* @author XOOPS Module Development Team
* @copyright {@link https://xoops.org 2001-2016 XOOPS Project}
* @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
* @link https://xoops.org XOOPS
*/
/**
* Prepares system prior to attempting to uninstall module
* @param \XoopsModule $module {@link XoopsModule}
*
* @return bool true if ready to uninstall, false if not
*/
function xoops_module_pre_uninstall_contact(\XoopsModule $module)
{
// Do some synchronization
return true;
}
/**
* Performs tasks required during uninstallation of the module
* @param \XoopsModule $module {@link XoopsModule}
*
* @return bool true if uninstallation successful, false if not
*/
function xoops_module_uninstall_contact(\XoopsModule $module)
{
return true;
}