Though we won't be able to actually do any uninstalling -- because we need the module to do that -- we can at least let the user know that something needs to be uninstalled.
If there is an entry in the file system for a module that is disabled (or enabled but removed) I'd like to show information on the Uninstall modules page prompting the user to add back the missing code, and uninstall properly.
It could be tricky to determine which modules need to be uninstalled (and which don't) but I think it's a worthwhile effort to think about how we might do that.
We could even (possibly?) use the schema_version to determine which version of the module to recommend.
This was spun-off from https://github.com/backdrop/backdrop-issues/issues/541
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