public function uninstall() { if (!Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'module_country` WHERE id_module = ' . (int) $this->id) || !Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'module_currency` WHERE id_module = ' . (int) $this->id) || !Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'module_group` WHERE id_module = ' . (int) $this->id)) { return false; } return parent::uninstall(); }
/** * @return bool */ public function uninstall() { Db::getInstance()->execute('DROP TABLE ' . _DB_PREFIX_ . 'pincode'); foreach ($this->conf_keys as $key) { Configuration::deleteByName($key); } return parent::uninstall() && $this->unregisterHook('header') && $this->unregisterHook('payment') && $this->unregisterHook('paymentReturn') && $this->unregisterHook('extraRight'); }