// module editorial hooks name

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11114 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-12-12 10:35:18 +00:00
parent 1120a5e2f3
commit d93415cfad
+3 -3
View File
@@ -50,7 +50,7 @@ class Editorial extends Module
public function install() public function install()
{ {
if (!parent::install() OR !$this->registerHook('home') OR !$this->registerHook('header')) if (!parent::install() OR !$this->registerHook('displayHome') OR !$this->registerHook('displayHeader'));
return false; return false;
if (!Db::getInstance()->execute(' if (!Db::getInstance()->execute('
@@ -290,7 +290,7 @@ class Editorial extends Module
</form>'; </form>';
} }
public function hookHome($params) public function hookDisplayHome($params)
{ {
$editorial = new EditorialClass(1, $this->context->language->id); $editorial = new EditorialClass(1, $this->context->language->id);
@@ -306,7 +306,7 @@ class Editorial extends Module
return $this->display(__FILE__, 'editorial.tpl'); return $this->display(__FILE__, 'editorial.tpl');
} }
public function hookHeader() public function hookDisplayHeader()
{ {
$this->context->controller->addCSS(($this->_path).'editorial.css', 'all'); $this->context->controller->addCSS(($this->_path).'editorial.css', 'all');
} }