I need to add DIVs around and tags for each form element in a custom form for theming purposes. I can do it in theme_form_element() function, however it will change the tags for all forms. Please suggest an approach to do it for a specific form.

Comments

hiramanpatil’s picture

You can use hook_form_FORM_ID_alter() in your custom module to alter LABELS/FIELDS of the form before it renders.