Hello everyone,<br><br>I&#39;m trying to add a few fields to the Drupal login form. Using hook_form_alter I was able to change the login form to display a new field, but the new field appears at the bottom of the form. Here is the code I used to change the form:<br>

<br>&nbsp;&nbsp;&nbsp; $form[newfield] = Array<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;#type&#39; =&gt; &#39;textfield&#39;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;#title&#39; =&gt; &#39;newfield_title&#39;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;#maxlength&#39; =&gt; 60,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;#size&#39; =&gt; 15,<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;#required&#39; =&gt; 1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<br><br>I get my new textfield, but I would like to place it after (below) the password field. <br><br>It is not apparent to me how the default layout is generated. When I examine the $form variable I don&#39;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.<br clear="all">
<br>-- <br>La perfection est atteinte non quand il ne reste rien à ajouter, mais quand il ne reste rien à enlever.<br>— Antoine de Saint-Exupéry<br>