// module editorial hooks name

This commit is contained in:
mMarinetti committed 2011-12-12 10:35:18 +00:00
1 parent 1b4955ffc3
commit 1e0fb5806a
1 file changed
+3 -3
+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');
} }