[-] MO : Fix hook name on differents modules - #PSCFV-2784

This commit is contained in:
fSerny
2012-07-02 08:51:05 +00:00
parent 4e5c1b327a
commit 67c696a1ed
7 changed files with 14 additions and 14 deletions
@@ -65,7 +65,7 @@ class Blockmyaccountfooter extends Module
$smarty->assign(array(
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('myAccountBlock')
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
));
return $this->display(__FILE__, $this->name.'.tpl');
}
@@ -77,12 +77,12 @@ class Blockmyaccountfooter extends Module
private function addMyAccountBlockHook()
{
return Db::getInstance()->execute('INSERT IGNORE INTO `'._DB_PREFIX_.'hook` (`name`, `title`, `description`, `position`) VALUES (\'myAccountBlockfooter\', \'My account block\', \'Display extra informations inside the "my account" block\', 1)');
return Db::getInstance()->execute('INSERT IGNORE INTO `'._DB_PREFIX_.'hook` (`name`, `title`, `description`, `position`) VALUES (\'displayMyAccountBlockfooter\', \'My account block\', \'Display extra informations inside the "my account" block\', 1)');
}
private function removeMyAccountBlockHook()
{
return Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'hook` WHERE `name` = \'myAccountBlockfooter\'');
return Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'hook` WHERE `name` = \'displayMyAccountBlockfooter\'');
}
public function hookHeader($params)
@@ -97,7 +97,7 @@ class Blockmyaccountfooter extends Module
$smarty->assign(array(
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('myAccountBlock')
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
));
return $this->display(__FILE__, $this->name.'.tpl');
}