Just a heads up that the following functions try to delete from undefined tables unless I'm missing something.
Is this legacy or placeholder code?

In commerce_order.module:

<?php

/**
 * Resets an order status by name to its module defined defaults.
 */
function commerce_order_status_reset($name) {
  db_delete('commerce_order_status')
    ->condition('name', $name)
    ->execute();
}

/**
 * Resets an order state by name to its module defined defaults.
 */
function commerce_order_state_reset($name) {
  db_delete('commerce_order_state')
    ->condition('name', $name)
    ->execute();
}
?>

Comments

rszrama’s picture

Status: Active » Closed (fixed)

These were unused leftovers from a time before 1.0 when we actually had those tables. I removed the functions.