In #1574, while helping @bd0bd out, I saw that it was not clear to him (average new Drupal/Backdrop user coming from another CMS) why he could not filter the available content by language. This page is generated by a view and the process of adding the content language as a field and a filter criterion is pretty straight-forward for a views ninja, but obviously not to new users.
Wouldn't it make sense to have the view automatically updated to include the "Content: Language" field and a respective exposed filter once the user added a second language to their site? My only concern is how we should handle the reverse operation (if the user removed all but a single language from their site). Would we want to remove the filters from the view?
Anyways, how would something like this be possible? Update hooks?
Recent comments
In a blog post titled "Github Tips and Tricks for Contrib Maintainers", I'd like to see some of the following topics: When is the README sufficient for documentation? When should...
Github Tips and Tricks for Contrib Maintainers
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