[support] inserting fields into the login form in the correct order

Dan Smith galooph at gmail.com
Sat Feb 21 18:16:54 UTC 2009


2009/2/21 Michael Anderson <usufruct at gmail.com>:
> It is not apparent to me how the default layout is generated. When I examine
> the $form variable I don't see anything that would indicate an ordering of
> elements. Is this something that has to be done via .tpl file in theme? I
> would rather avoid that because then the login form becomes disordered again
> if I change themes. Please advise.

You need to look at 'weight' -
<http://api.drupal.org/api/file/developer/topics/forms_api_reference.html/6#weightval>

Dan


More information about the support mailing list