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

quicksketch’s picture

Unfortunately 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.

bradezone’s picture

cool, thanks for the info

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.