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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16173 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2012-07-02 08:51:05 +00:00
parent 9c778c181f
commit 5959b96b2e
7 changed files with 14 additions and 14 deletions
+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)