// fix hookDisplayHeader in blockcontact (module and default install)

This commit is contained in:
mMarinetti
2011-12-02 16:55:44 +00:00
parent 05a4fbd6f9
commit e659fc816d
2 changed files with 8 additions and 2 deletions

View File

@@ -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 */

View File

@@ -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;