// same for unregister hook
This commit is contained in:
@@ -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