- Patch #47785 by chx: login block not w3 compatible (two id attributes)

4.7.x
Dries Buytaert 2006-02-15 21:03:20 +00:00
parent f030164bcb
commit 9dacf2f8d7
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,