// fix hookDisplayHeader in blockcontact (module and default install)
This commit is contained in:
@@ -222,6 +222,7 @@ INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook`, `position`) VALUES
|
||||
(59, 21, 6),
|
||||
/* blockcontact */
|
||||
(60, 6, 7),
|
||||
(60, 9, 24),
|
||||
/* blockreinsurance */
|
||||
(62, 21, 1),
|
||||
/* favoriteproducts */
|
||||
|
||||
@@ -44,7 +44,7 @@ class blockcontact extends Module
|
||||
|
||||
public function install()
|
||||
{
|
||||
return (parent::install() AND Configuration::updateValue('blockcontact_telnumber', '') AND Configuration::updateValue('blockcontact_email', '') AND $this->registerHook('rightColumn'));
|
||||
return (parent::install() AND Configuration::updateValue('blockcontact_telnumber', '') AND Configuration::updateValue('blockcontact_email', '') AND $this->registerHook('displayRightColumn') && $this->registerHook('displayHeader'));
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
@@ -80,8 +80,13 @@ class blockcontact extends Module
|
||||
</form>
|
||||
';
|
||||
}
|
||||
|
||||
public function hookDisplayHeader()
|
||||
{
|
||||
$this->context->controller->addCSS(($this->_path).'blockcontact.css', 'all');
|
||||
}
|
||||
|
||||
public function hookRightColumn()
|
||||
public function hookDisplayRightColumn()
|
||||
{
|
||||
global $smarty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user