Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I don't get it how it's possible that required filed asterisk is placed before label title on on uc-cart-checkout-form? Function form_element_label prints asterisk after label title.
I just wanted to print asterisk after the label title but can't find where it's located. According to dev module it's calling regular theme_form_element_label() but it's not behaving as intended.
Comments
Comment #1
longwaveuc_store_pre_render_address_field() prepends theme('form_element_label') to the title to achieve this.
http://api.ubercart.me/api/drupal/ubercart!uc_store!uc_store.module/func...
Comment #2
xalexas CreditAttribution: xalexas commentedThanks. Found it. How to change this without hacking uc_store.module? This function is not themable. Only way I can think of is to create hook_form_alter module.
Comment #3
longwaveNot sure really. hook_form_alter() might let you add your own pre_render callback, or remove the existing one. Alternatively a patch that adds a theme function might be accepted as a feature request.
Comment #5
neochief CreditAttribution: neochief commentedIn your theme's template.php file, add this: