It would be useful if we had a global concept of storage state, for all modules and systems to use consistently. For example, a view can be custom, default, or overridden. So can a layout. So can anything else that's exportable, like an image style!
Right now views uses constants for these things (VIEWS_STORAGE_OVERRIDE, VIEWS_STORAGE_NORMAL) but it would be good if we didn't need to use these constants for other unrelated things, like layouts or image styles. It would also be good if they were not these silly constants (integers) but were instead strings, like "custom", "default", or "overridden".
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