Merge pull request #259 from ldecoker/patch-3
[*] [MO] blocksupplier - missing uninstall method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user