[*] PROJECT : New Module API (part 1)

This commit is contained in:
fSerny
2011-11-02 10:49:01 +00:00
parent 7f830c2f4e
commit d5e265f75e
53 changed files with 640 additions and 339 deletions
+2 -2
View File
@@ -189,7 +189,7 @@ function submitAccount()
$context->cookie->logged = 1;
$customer->logged = 1;
$context->cookie->email = $customer->email;
Module::hookExec('createAccount', array(
Hook::exec('createAccount', array(
'_POST' => $_POST,
'newCustomer' => $customer
));
@@ -238,7 +238,7 @@ function submitLogin()
$context->cookie->email = $customer->email;
if (Configuration::get('PS_CART_FOLLOWING') AND (empty($context->cookie->id_cart) OR Cart::getNbProducts($context->cookie->id_cart) == 0))
$context->cookie->id_cart = Cart::lastNoneOrderedCart($customer->id);
Module::hookExec('authentication');
Hook::exec('authentication');
// Next !
$payerID = strval(Tools::getValue('payerID'));