Projet

Général

Profil

Révision b858700c

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/commerce/modules/order/commerce_order.module
1016 1016
}
1017 1017

  
1018 1018
/**
1019
 * Resets the cached list of order statuses.
1019
 * Resets the cached list of order states.
1020 1020
 */
1021 1021
function commerce_order_states_reset() {
1022
  $order_statuses = &drupal_static('commerce_order_statuses');
1023
  $order_statuses = NULL;
1022
  $order_states = &drupal_static('commerce_order_states');
1023
  $order_states = NULL;
1024 1024
}
1025 1025

  
1026 1026
/**
......
1042 1042
  return FALSE;
1043 1043
}
1044 1044

  
1045
/**
1046
 * Resets an order state by name to its module defined defaults.
1047
 */
1048
function commerce_order_state_reset($name) {
1049
  db_delete('commerce_order_state')
1050
    ->condition('name', $name)
1051
    ->execute();
1052
}
1053

  
1054 1045
/**
1055 1046
 * Returns the human readable title of any or all order states.
1056 1047
 *
......
1186 1177
  return FALSE;
1187 1178
}
1188 1179

  
1189
/**
1190
 * Resets an order status by name to its module defined defaults.
1191
 */
1192
function commerce_order_status_reset($name) {
1193
  db_delete('commerce_order_status')
1194
    ->condition('name', $name)
1195
    ->execute();
1196
}
1197

  
1198 1180
/**
1199 1181
 * Returns the human readable title of any or all order statuses.
1200 1182
 *
......
1249 1231
 * Updates the status of an order to the specified status.
1250 1232
 *
1251 1233
 * While there is no explicit Rules event or hook devoted to an order status
1252
 * being updated, you can use the commerce_order_updated event / hook to check
1234
 * being updated, you can use the commerce_order_update event / hook to check
1253 1235
 * for a changed order status by comparing $order->original->status to the
1254 1236
 * $order->status. If they are different, this will alert you that the order
1255 1237
 * status for the given order was just changed.

Formats disponibles : Unified diff