// Set admin display hooks in templates
This commit is contained in:
@@ -657,9 +657,6 @@ class AdminCustomersControllerCore extends AdminController
|
||||
// Messages
|
||||
'messages' => $messages,
|
||||
|
||||
// Display hook specified to this page : AdminCustomers
|
||||
'hook' => Hook::exec('displayAdminCustomers', array('id_customer' => $customer->id)),
|
||||
|
||||
// Groups
|
||||
'groups' => $groups,
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ class AdminFeaturesControllerCore extends AdminController
|
||||
$feature_value = new FeatureValue(Tools::getValue('id_feature_value'));
|
||||
|
||||
$this->tpl_vars = array(
|
||||
'hook' => Hook::exec('displayFeatureValueForm', array('id_feature_value' => $feature_value->id))
|
||||
'feature_value' => $feature_value,
|
||||
);
|
||||
|
||||
$this->getlanguages();
|
||||
|
||||
@@ -564,11 +564,6 @@ class AdminHomeControllerCore extends AdminController
|
||||
$tpl_vars['last_orders'] =$this->getLastOrders();
|
||||
$tpl_vars['tips_optimization'] = $this->_displayOptimizationTips();
|
||||
|
||||
$HOOK_BACKOFFICEHOME = Hook::exec('displayBackOfficeHome');
|
||||
$tpl_vars['HOOK_BACKOFFICEHOME'] = $HOOK_BACKOFFICEHOME;
|
||||
$smarty->assign($tpl_vars);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1050,8 +1050,6 @@ class AdminOrdersControllerCore extends AdminController
|
||||
'invoices_collection' => $order->getInvoicesCollection(),
|
||||
'not_paid_invoices_collection' => $order->getNotPaidInvoicesCollection(),
|
||||
'payment_methods' => $payment_methods,
|
||||
'HOOK_INVOICE' => Hook::exec('displayInvoice', array('id_order' => $order->id)),
|
||||
'HOOK_ADMIN_ORDER' => Hook::exec('displayAdminOrder', array('id_order' => $order->id))
|
||||
);
|
||||
|
||||
return parent::renderView();
|
||||
|
||||
Reference in New Issue
Block a user