/** * Delete all of module's blocks. * * @note Templates Delete is move into Legacy_ModuleInstallUtils. */ function _uninstallBlocks() { Legacy_ModuleInstallUtils::uninstallAllOfBlocks($this->_mXoopsModule, $this->mLog); // // Additional // $tplHandler =& xoops_gethandler('tplfile'); $criteria = new Criteria('tpl_module', $this->_mXoopsModule->get('dirname')); if (!$tplHandler->deleteAll($criteria)) { $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_DELETE_BLOCK_TEMPLATES, $tplHandler->db->error())); } }