summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module
index f03d8a57e..7d6efb7f0 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -517,8 +517,6 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) {
$edit = $_POST['edit'];
- $output = "<div class=\"user-login-block\">\n";
-
// 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.
@@ -526,9 +524,8 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
$output .= form_textfield(t('Username'), 'name', $edit['name'], 15, 64);
$output .= form_password(t('Password'), 'pass', '', 15, 64);
$output .= form_submit(t('Log in'));
- $output .= "</div>\n";
- $output = form($output, 'post', url('user/login', drupal_get_destination()));
+ $output = form($output, 'post', url('user/login', drupal_get_destination()), array('id' => 'user-login-form'));
if (variable_get('user_register', 1)) {
$items[] = l(t('Create new account'), 'user/register', array('title' => t('Create a new user account.')));