Description of the need
Color module provides preset color schemes. color.inc provides the schemes, the default colors which are swapped for scheme colors, but also a list of which CSS files are searched for these default colors. The CSS files in that list must also be ones declared in the theme's info file.
It would probably be useful if contrib modules which style their output, could also expose their output to color. So if a module created a new front page slider for example, it would be good if changing theme color schemes would change the slider colors as well, to match the rest of the display.
Proposed solution
A new hook, that lists CSS file locations to expose to Color module.
Alternatives that have been considered
None
Additional information
Note that this would (only) be helpful once we allow color info to be config, in https://github.com/backdrop/backdrop-issues/issues/2554
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes the ability to expose module color styles to Color modules schemes.
Advocate @docwilmot
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