From 9dacf2f8d7543c8da1b0efa9d814b8fa35b0abe3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 15 Feb 2006 21:03:20 +0000 Subject: [PATCH] - Patch #47785 by chx: login block not w3 compatible (two id attributes) --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index acc505f756c..9558b7c3e1e 100644 --- a/modules/user.module +++ b/modules/user.module @@ -523,7 +523,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) { // For usability's sake, avoid showing two login forms on one page. if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) { $form['#action'] = url($_GET['q'], drupal_get_destination()); - $form['#attributes'] = array('id' => 'user-login-form'); + $form['#id'] = 'user-login-form'; $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#maxlength' => 60, diff --git a/modules/user/user.module b/modules/user/user.module index acc505f756c..9558b7c3e1e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -523,7 +523,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) { // For usability's sake, avoid showing two login forms on one page. if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) { $form['#action'] = url($_GET['q'], drupal_get_destination()); - $form['#attributes'] = array('id' => 'user-login-form'); + $form['#id'] = 'user-login-form'; $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#maxlength' => 60,