Update modules/blocksupplier/blocksupplier.php

Missing uninstall function for blocksupplier to clean the configuration table.
This commit is contained in:
ldecoker
2013-02-08 11:37:14 +01:00
parent c83a0fda3f
commit 5eb63feecc
+13
View File
@@ -57,6 +57,19 @@ class BlockSupplier extends Module
return true;
}
public function uninstall()
{
if (!parent::uninstall())
return false;
/* remove the configuration variable */
$result = Configuration::deleteByName('SUPPLIER_DISPLAY_TEXT');
$result &= Configuration::deleteByName('SUPPLIER_DISPLAY_TEXT_NB');
$result &= Configuration::deleteByName('SUPPLIER_DISPLAY_FORM');
return $result;
}
function hookDisplayLeftColumn($params)
{
$id_lang = (int)Context::getContext()->language->id;