Description of the need
When some code is run in hook_user_presave(), an easy way to bulk update user accounts would be to use the actions at the top of /admin/people/list. However there's not currently an action to save the user account (to trigger this hook).
Proposed solution
Add an action that simply saves the user account(s), triggering the presave hook.
Alternatives that have been considered
An alternate solution is to use the 'Block user(s)' action. That triggers the presave hook, but then you need to unblock the users again. That triggers (by default) an email to be sent to users, and could be problematic if you'd prefer to have these changes made without triggering emails to be sent...
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes a 'Save user(s)' action.
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