I'm not sure why user-picture has a template file instead of a theme function, or why we aren't just calling theme('image') or theme('image_style') with an extra class.
We should also be able to get a little performance gain if we can consolidate this.
GitHub Issue #:
555
Recent comments
Hey there! That error message is definitely a head-scratcher. Even though you uninstalled Views, it sounds like something is still referencing a Views-related constant. Maybe a custom module or...
VIEWS_STORAGE_OVERRIDE
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