Closed (fixed)
Project:
Webform
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2010 at 14:14 UTC
Updated:
29 Oct 2010 at 03:20 UTC
Echoing the sentiments of this post: http://drupal.org/node/602074
It appears that "drupal_render" automatically outputs webform fields in this order: label, input, description
I have looked over THEMING.txt as well as the comments in webform-form-tpl.php then conducted various google searches, but there seems to be no info on how to change this ordering. For the most part, I want the order to be: label, description, input
When customizing webform-form-tpl.php the only thing we can do is call "drupal_render" on the individual fields, but we can't change the order of things within them. Is this possible?
Comments
Comment #1
quicksketchUnfortunately Drupal 6 (but not Drupal 7) forces ALL form elements to be output in exactly the same way, no matter where they came from. To change the ordering of these elements, you have to override theme_form_element(), which is responsible for printing out the label, field, and description of all form elements in all of Drupal.
Comment #2
bradezone commentedcool, thanks for the info
Comment #3
quicksketch