// new modules hooked for default theme, fixed hook names
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -58,7 +58,7 @@ class BlockSupplier extends Module
|
||||
return true;
|
||||
}
|
||||
|
||||
function hookLeftColumn($params)
|
||||
function hookDisplayLeftColumn($params)
|
||||
{
|
||||
$this->context->smarty->assign(array(
|
||||
'suppliers' => Supplier::getSuppliers(false),
|
||||
@@ -125,12 +125,12 @@ class BlockSupplier extends Module
|
||||
return $output;
|
||||
}
|
||||
|
||||
function hookRightColumn($params)
|
||||
function hookDisplayRightColumn($params)
|
||||
{
|
||||
return $this->hookLeftColumn($params);
|
||||
return $this->hookDisplayLeftColumn($params);
|
||||
}
|
||||
|
||||
function hookHeader($params)
|
||||
function hookDisplayHeader($params)
|
||||
{
|
||||
$this->context->controller->addCSS(($this->_path).'blocksupplier.css', 'all');
|
||||
}
|
||||
|
||||
@@ -47,9 +47,9 @@ class FavoriteProducts extends Module
|
||||
public function install()
|
||||
{
|
||||
if (!parent::install()
|
||||
OR !$this->registerHook('myAccountBlock')
|
||||
OR !$this->registerHook('extraLeft')
|
||||
OR !$this->registerHook('header'))
|
||||
|| !$this->registerHook('displayMyAccountBlock')
|
||||
|| !$this->registerHook('displayLeftColumnProduct')
|
||||
|| !$this->registerHook('displayHeader'))
|
||||
return false;
|
||||
|
||||
if (!Db::getInstance()->execute('
|
||||
@@ -74,7 +74,7 @@ class FavoriteProducts extends Module
|
||||
return true;
|
||||
}
|
||||
|
||||
public function hookCustomerAccount($params)
|
||||
public function hookDisplayCustomerAccount($params)
|
||||
{
|
||||
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
||||
|
||||
@@ -85,12 +85,12 @@ class FavoriteProducts extends Module
|
||||
return $this->display(__FILE__, 'my-account.tpl');
|
||||
}
|
||||
|
||||
public function hookMyAccountBlock($params)
|
||||
public function hookDisplayMyAccountBlock($params)
|
||||
{
|
||||
return $this->hookCustomerAccount($params);
|
||||
return $this->hookDisplayCustomerAccount($params);
|
||||
}
|
||||
|
||||
public function hookExtraLeft($params)
|
||||
public function hookDisplayaLeftColumnProduct($params)
|
||||
{
|
||||
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
||||
|
||||
@@ -100,7 +100,7 @@ class FavoriteProducts extends Module
|
||||
return $this->display(__FILE__, 'favoriteproducts-extra.tpl');
|
||||
}
|
||||
|
||||
public function hookHeader($params)
|
||||
public function hookDisplayHeader($params)
|
||||
{
|
||||
$this->context->controller->addCSS($this->_path.'favoriteproducts.css', 'all');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user