This is part of #3797
In #764 we moved the "Hidden" option for comments from the content type level to the node level. So if one wants to achieve the previous functionality (for example to set the comments for all content of a specific content type to hidden), then the only way to do it would be to filter content by this content type and then set their comments to hidden en masse. But we don't have such an option available. Let's provide this VBO then.
Here's a rundown of the problem:
- create a vanilla Backdrop site
- start adding content
- after some time, a decision is made to disable comments for the Post content type + hide all comments that may have been added for existing content
- you configure the Post content type so that comments won't be allowed for new content by default
- there is no easy way to close/hide comments for existing content of the type post via the admin UI
Item from BAD Camp training, probably in VBO
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