Issue #20446 by dead_arm: Added Cursor focus on user login page.

8.0.x
catch 2012-05-14 12:20:18 +09:00
parent c74aa1ecd0
commit 439e27cc10
1 changed files with 3 additions and 0 deletions

View File

@ -1871,6 +1871,9 @@ function user_login($form, &$form_state) {
'#size' => 60,
'#maxlength' => USERNAME_MAX_LENGTH,
'#required' => TRUE,
'#attributes' => array(
'autofocus' => 'autofocus',
),
);
$form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal')));