Projet

Général

Profil

Révision 280fe687

Ajouté par Assos Assos il y a environ 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/commerce/modules/order/commerce_order.api.php
178 178
function hook_commerce_order_presave($order) {
179 179
  // No example.
180 180
}
181

  
182
/**
183
 * Respond to order deletion.
184
 *
185
 * The order will still exist and allows you to take an action before it is
186
 * completely removed.
187
 *
188
 * @param $order
189
 *   The order object that is being deleted.
190
 */
191
function hook_commerce_order_delete($order) {
192
  commerce_cart_order_session_delete($order->order_id);
193
  commerce_cart_order_session_delete($order->order_id, TRUE);
194
}

Formats disponibles : Unified diff