This is part of #4046, and a sibling-issue to #4115.
The idea here is to add a new "Clone" operation to all types of layout templates in /admin/structure/layouts/settings (both standard, as well as flexible). This would make a copy the configuration of flexible layout templates to a new one. For "standard" templates, it would parse their .info file, and create matching rows/regions.
This would effectively allow people to clone any "standard" layout template into a one-for-one copy of a flexible one. That way, they'd get a starting point, with regions already configured same as the "origin" template, and they'd from there be able to add/remove/reorder regions/rows as they please.
Recent comments
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
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE