// same for unregister hook
This commit is contained in:
1 parent
09359d011f
commit
c5fc26ed0b
5 files changed
+44
-2
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user