Dear Drupal.org,
I am trying to create a horizontal login for my Drupal powered website (v4.5.2).
The code to make your own login area is:
<?php
if (empty($edit)) {
$edit['destination'] = $_GET['q'];
}
// NOTE: special care needs to be taken because on pages with forms,
// such as node and comment submission pages, the $edit variable
// might already be set.
$output .= form_hidden('destination', $edit['destination']);
$output .= form_textfield(t('Username'), 'name', $edit['name'], 15, 64);
$output .= form_password(t('Password'), 'pass', $pass, 15, 64);
$output .= form_submit(t('Log in'));
$output .= "</div>";
$output = form($output, 'post', url('user/login'));
return $output;
?>
Which creates something extacly like the login block by default:
--------------------
| [=======] |
| |
| [=======] |
| |
--------------------
I would like to display this login block like:
-------------------------------------
| [=======] [=======] |
-------------------------------------
Any tips?