Describe your issue or idea
When deleting a field, we see this message:
If you have any content left in this field, it will be lost. This action cannot be undone.
This always makes me a little nervous, even when I'm pretty sure there is no content in the field. Actually even if I've checked the database directly to make sure there is none. This is an idea for feedback: can we check if there is any content in that field and tell the user whether there is or not instead of this broad brush approach?
It could be simply:
There is content in this field which will be lost. This action cannot be undone.
Or (for example) when deleting a field from the "Page" content type:
7 pages have content in this field which will be lost. This action cannot be undone.
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