In #5348 I've been working towards custom form validation errors for required Form API elements via a #required_error property. I believe that we should also allow people to customize the default "This field is required" text added to the "required" indicators (red asterisks) for fields added to content types and other entities:

We already have a "Required field" checkbox available in when specifying field settings:

What I would like us to have is: - a text field "tied" to that checkbox (hidden by default - shown only when the "Required field" checkbox is ticked), to allow people to customize the default text. - another text field "tied" to that checkbox, to allow customizing the validation error message for that required field.
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