diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-11 12:53:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-11 12:53:09 +0000 |
commit | 63ece6f9577f97ee0edf913c57e274508baddd07 (patch) | |
tree | 42854b6de082c98689310798a7c783e7b1ed5f59 | |
parent | 544aefad8aa6d9dfc14b550194a471dc1a9cbde2 (diff) | |
download | brdo-63ece6f9577f97ee0edf913c57e274508baddd07.tar.gz brdo-63ece6f9577f97ee0edf913c57e274508baddd07.tar.bz2 |
- Patch #29060 by tostinne/ax: added tabindex to user login page.
-rw-r--r-- | modules/user.module | 6 | ||||
-rw-r--r-- | modules/user/user.module | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/user.module b/modules/user.module index e6efac5bd..1fe27acd3 100644 --- a/modules/user.module +++ b/modules/user.module @@ -838,15 +838,15 @@ function user_login($msg = '') { if ($msg) { $form['message'] = array('#value' => "<p>$msg</p>"); } - $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#size' => 30, '#maxlength' => 64, '#required' => TRUE); + $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#size' => 30, '#maxlength' => 64, '#required' => TRUE, '#attributes' => array('tabindex' => '1')); if (count(user_auth_help_links()) > 0) { $form['name']['#description'] = t('Enter your %s username, or an ID from one of our affiliates: %a.', array('%s' => variable_get('site_name', 'local'), '%a' => implode(', ', user_auth_help_links()))); } else { $form['name']['#description'] = t('Enter your %s username.', array('%s' => variable_get('site_name', 'local'))); } - $form['pass'] = array('#type' => 'password', '#title' => t('Password'), '#description' => t('Enter the password that accompanies your username.'), '#required' => TRUE); - $form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2); + $form['pass'] = array('#type' => 'password', '#title' => t('Password'), '#description' => t('Enter the password that accompanies your username.'), '#required' => TRUE, '#attributes' => array('tabindex' => '2')); + $form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2, '#attributes' => array('tabindex' => '3')); return drupal_get_form('user_login', $form); } diff --git a/modules/user/user.module b/modules/user/user.module index e6efac5bd..1fe27acd3 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -838,15 +838,15 @@ function user_login($msg = '') { if ($msg) { $form['message'] = array('#value' => "<p>$msg</p>"); } - $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#size' => 30, '#maxlength' => 64, '#required' => TRUE); + $form['name'] = array('#type' => 'textfield', '#title' => t('Username'), '#size' => 30, '#maxlength' => 64, '#required' => TRUE, '#attributes' => array('tabindex' => '1')); if (count(user_auth_help_links()) > 0) { $form['name']['#description'] = t('Enter your %s username, or an ID from one of our affiliates: %a.', array('%s' => variable_get('site_name', 'local'), '%a' => implode(', ', user_auth_help_links()))); } else { $form['name']['#description'] = t('Enter your %s username.', array('%s' => variable_get('site_name', 'local'))); } - $form['pass'] = array('#type' => 'password', '#title' => t('Password'), '#description' => t('Enter the password that accompanies your username.'), '#required' => TRUE); - $form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2); + $form['pass'] = array('#type' => 'password', '#title' => t('Password'), '#description' => t('Enter the password that accompanies your username.'), '#required' => TRUE, '#attributes' => array('tabindex' => '2')); + $form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2, '#attributes' => array('tabindex' => '3')); return drupal_get_form('user_login', $form); } |