// same for unregister hook

This commit is contained in:
Rémi Gaillard
2013-07-01 16:30:53 +02:00
parent 09359d011f
commit c5fc26ed0b
5 changed files with 44 additions and 2 deletions
@@ -45,11 +45,22 @@ class Blockmyaccountfooter extends Module
public function install()
{
if (!$this->addMyAccountBlockHook() || !parent::install() || !$this->registerHook('footer') || !$this->registerHook('header') || !$this->registerHook('actionModuleRegisterHookAfter'))
if (!$this->addMyAccountBlockHook()
|| !parent::install()
|| !$this->registerHook('footer')
|| !$this->registerHook('header')
|| !$this->registerHook('actionModuleRegisterHookAfter')
|| !$this->registerHook('actionModuleUnRegisterHookAfter')
)
return false;
return true;
}
public function hookActionUnModuleRegisterHookAfter($params)
{
return $this->hookActionModuleRegisterHookAfter($params);
}
public function uninstall()
{
return parent::uninstall() && $this->removeMyAccountBlockHook();