[-] MO: exec hook on hook registration #PSCFV-8977
This commit is contained in:
1 parent
0e0d8c58d0
commit
09359d011f
4 files changed
+21
-6
No files matched your search
@@ -48,7 +48,8 @@ class BlockMyAccount extends Module
|
||||
if (!$this->addMyAccountBlockHook()
|
||||
|| !parent::install()
|
||||
|| !$this->registerHook('displayLeftColumn')
|
||||
|| !$this->registerHook('displayHeader'))
|
||||
|| !$this->registerHook('displayHeader')
|
||||
|| !$this->registerHook('actionModuleRegisterHookAfter'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -58,6 +59,12 @@ class BlockMyAccount extends Module
|
||||
return (parent::uninstall() && $this->removeMyAccountBlockHook());
|
||||
}
|
||||
|
||||
public function hookActionModuleRegisterHookAfter($params)
|
||||
{
|
||||
if ($params['hook_name'] == 'displayMyAccountBlock')
|
||||
$this->_clearCache('blockmyaccount.tpl');
|
||||
}
|
||||
|
||||
public function hookDisplayLeftColumn($params)
|
||||
{
|
||||
if (!$this->context->customer->isLogged())
|
||||
|
||||
Reference in new issue
Block a user