Description of the need
I have a custom block on the homepage with intro text that I want the client to be able to edit. So I gave them permission to 'Use contextual links' and 'Administer custom blocks'. However when they hover over the homepage block, no contextual link appears. It seems that you need the 'Administer Layouts' permission to see/use that, but I didn't/don't want to give them that permission. So they can still edit the block using the admin bar, but it'd be nice if they could use the contextual link too.
Proposed solution
It'd be nice if the contextual link was displayed and changed to go to /admin/structure/block/manage/[BLOCK]/configure instead of the Layouts UI if they don't have that permission.
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