Some code is required so early in the bootstrap process that it cannot be included in a normal module. By the time we get to the point we can call hooks, the code, usually classes, has to be already active. In particular, this applies to:
- Database classes (DatabaseConnection and friends)
- Configuration storage classes (ConfigStorageInterface)
- Caching classes (BackdropCacheInterface)
We need a well designed and documented way to create backend driver modules.
GitHub Issue #:
2383
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