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.
Order::create() is better and more flexible.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2626128-order-new.patch | 2.2 KB | TR |
|
Comments
Comment #2
TR CreditAttribution: TR commentedYes, I removed all usage of that function back in commit be2c722, I just never removed the function itself.
Comment #3
TR CreditAttribution: TR commentedThis patch also removes uc_order_create_for_user() (which called uc_order_new()). As far as I can tell, this is an old convenience function which wasn't used in D7 and isn't needed in D8.
Comment #4
longwaveuc_order_create_for_user() was the callback for a local action on /admin/store/customers/orders/%, created via uc_order_menu_local_tasks_alter() - not sure whether it is worth keeping this?
Comment #6
longwaveuc_order_create_for_user() was converted in #2627704: Fix 'Create order for this customer' local action, I also added a CHANGELOG.txt entry to cover uc_order_new() when committing this.