// theme installation

This commit is contained in:
Damien Metzger committed 2013-10-24 09:49:46 +02:00
1 parent d9382a0a5b
commit e17dd1fdde
5 files changed
+76 -74

No files matched your search

+3 -5
View File
@@ -61,8 +61,7 @@ class Blocknewsletter extends Module
public function install()
{
if (parent::install() == false || $this->registerHook('leftColumn') == false || $this->registerHook('header') == false
|| $this->registerHook('actionCustomerAccountAdd') == false)
if (!parent::install() || !$this->registerHook(array('header', 'footer', 'actionCustomerAccountAdd')))
return false;
Configuration::updateValue('NW_SALT', Tools::passwdGen(16));
@@ -83,9 +82,8 @@ class Blocknewsletter extends Module
public function uninstall()
{
if (!parent::uninstall())
return false;
return Db::getInstance()->execute('DROP TABLE '._DB_PREFIX_.'newsletter');
Db::getInstance()->execute('DROP TABLE '._DB_PREFIX_.'newsletter');
return parent::uninstall();
}
public function getContent()