Update modules/blocksupplier/blocksupplier.php
Missing uninstall function for blocksupplier to clean the configuration table.
This commit is contained in:
@@ -57,6 +57,19 @@ class BlockSupplier extends Module
|
|||||||
return true;
|
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)
|
function hookDisplayLeftColumn($params)
|
||||||
{
|
{
|
||||||
$id_lang = (int)Context::getContext()->language->id;
|
$id_lang = (int)Context::getContext()->language->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user