This is part of the #1905 meta...
Describe your issue or idea
This idea has been mentioned in the past by @wesruv while building Basis, and also in an unrelated context in https://github.com/backdrop/backdrop-issues/issues/1224#issuecomment-141...
There are php libraries that could help with this:
- https://github.com/pedrosancao/php-color-extractor
- https://github.com/thephpleague/color-extractor
- https://github.com/bachors/PHP-Extract-Image-Color-Class
- ...moar??
Expected behavior (if reporting a bug)
When users visit the settings page of a theme that has color.module support, they are presented with a button to upload their favourite image or their company logo. Once uploaded, we extract a color scheme and apply it to the theme. The user can now preview and tweak.
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