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

This commit is contained in:
fSerny committed 2012-07-02 08:51:05 +00:00
1 parent dd302d4fad
commit ee4541a341
7 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -84,12 +84,12 @@ class BlockMyAccount extends Module
private function addMyAccountBlockHook()
{
return Db::getInstance()->execute('INSERT IGNORE INTO `'._DB_PREFIX_.'hook` (`name`, `title`, `description`, `position`) VALUES (\'myAccountBlock\', \'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 (\'displayMyAccountBlock\', \'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` = \'myAccountBlock\'');
return Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'hook` WHERE `name` = \'displayMyAccountBlock\'');
}
public function hookDisplayHeader($params)