...and use that one instead of confirm_form().
This would be the first step to implementing #3769. It would basically have the same functionality as confirm_form(), with the difference being that this would open a dialog on the same page where a form is being submitted, instead of loading a confirmation page, and then redirecting back to the original form where the user started from.
Recent comments
In a blog post titled "Github Tips and Tricks for Contrib Maintainers", I'd like to see some of the following topics: When is the README sufficient for documentation? When should...
Github Tips and Tricks for Contrib Maintainers
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout