Hi,
I'm trying to figure out general HTML generation principles in Drupal core, but it still remains a bit unclear. As a first exercise I'd like to figure out how the "user_login_block" is rendered to HTML and try to change the layout from ...
... current "user_login_block" layout
-------------------
"Username label"
"Username textfield"
"Password label"
"Password textfield"
-------------------
... to this "user_login_block" layout
-------------------
"Username label" : "Username textfield"
"Password label" : "Password textfield"
-------------------
I have tried to figure out the flow starting from USER MODULE's "user_block" function to FORM.INC's "drupal_render_form" function, but I just can't find the spot where "DIV" tags are inserted to form? I think I understand quite well how the $form array is constructed, but how and where is it rendered to HTML? Although there would be shortcut for achieving this (e.g. installing new theme), I'd really like to understand how the core does this in first place.