I recently was confused by:
- The UI page is called 'Recent log messages'
- The module is called 'Database Logging' (
dblog) - The API function for adding messages is called
watchdog()
My research took me to this page which explains that the term 'watchdog' comes from the name of the predecessor to our dblog module from Drupal 4 & 5!
Since we more-or-less use the terms 'log/logging' now (in both the UI and the module name), I propose deprecating the watchdog*() functions and creating more generic and consistent log*() functions instead.
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