Hello everyone,<br><br>I'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> $form[newfield] = Array<br> (<br> '#type' => 'textfield',<br> '#title' => 'newfield_title',<br> '#maxlength' => 60,<br> '#size' => 15,<br>
'#required' => 1,<br> );<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'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>