Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
rszrama CreditAttribution: rszrama commentedThese were unused leftovers from a time before 1.0 when we actually had those tables. I removed the functions.