0

In drual 7 my forms are outputting like this

<label for="edit-panes-billing-billing-first-name"><span class="form-required">(*)</span> First name</label>

The problem being the form-required indicator goes at the front. I cannot find the hook. I need to either

I need to change the html order or wrap a span around the text part so the output is

<label for="edit-panes-billing-billing-first-name"><span class="form-required">(*)</span> <span class="mytitle">First name</span></label>
apaderno
  • 28,547
  • 16
  • 75
  • 90
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192

1 Answers1

1

Use hook_form_alter() to alter this field's #required property.

The code will be similar to:

$form['panes_billing_billing_first_name']['#required'] = FALSE;
halfer
  • 19,824
  • 17
  • 99
  • 186
Muhammad Reda
  • 26,379
  • 14
  • 93
  • 105