diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-19 13:43:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-19 13:43:29 +0000 |
commit | bc58116129bececba8c89f7062f01e2b74bfa49b (patch) | |
tree | ec310bafe6807a36d9e4ba15b3ec243f2dc5b760 /modules | |
parent | 5281a22070b8b426ddc6e09fce7da6a21345ad69 (diff) | |
download | brdo-bc58116129bececba8c89f7062f01e2b74bfa49b.tar.gz brdo-bc58116129bececba8c89f7062f01e2b74bfa49b.tar.bz2 |
- Usability improvement: on the registration page, mark the username and e-mail
address as required fields. This makes for more consistent behavior, as the
profile module might add required fields that are marked as such.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 4 | ||||
-rw-r--r-- | modules/user/user.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module index d0c6dcf15..38c7c13f4 100644 --- a/modules/user.module +++ b/modules/user.module @@ -969,8 +969,8 @@ function user_register($edit = array()) { $affiliates = implode(', ', $affiliates); $output .= '<p>'. t('Note: if you have an account with one of our affiliates (%s), you may <a href="%login_uri">login now</a> instead of registering.', array('%s' => $affiliates, '%login_uri' => url('user'))) .'</p>'; } - $default = form_textfield(t('Username'), 'name', $edit['name'], 30, 64, t('Your full name or your preferred username; only letters, numbers and spaces are allowed.')); - $default .= form_textfield(t('E-mail address'), 'mail', $edit['mail'], 30, 64, t('A password and instructions will be sent to this e-mail address, so make sure it is accurate.')); + $default = form_textfield(t('Username'), 'name', $edit['name'], 30, 64, t('Your full name or your preferred username; only letters, numbers and spaces are allowed.'), NULL, TRUE); + $default .= form_textfield(t('E-mail address'), 'mail', $edit['mail'], 30, 64, t('A password and instructions will be sent to this e-mail address, so make sure it is accurate.'), NULL, TRUE); $extra = _user_forms($edit, $account, $category, 'register'); // Only display form_group around default fields if there are other groups. if ($extra) { diff --git a/modules/user/user.module b/modules/user/user.module index d0c6dcf15..38c7c13f4 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -969,8 +969,8 @@ function user_register($edit = array()) { $affiliates = implode(', ', $affiliates); $output .= '<p>'. t('Note: if you have an account with one of our affiliates (%s), you may <a href="%login_uri">login now</a> instead of registering.', array('%s' => $affiliates, '%login_uri' => url('user'))) .'</p>'; } - $default = form_textfield(t('Username'), 'name', $edit['name'], 30, 64, t('Your full name or your preferred username; only letters, numbers and spaces are allowed.')); - $default .= form_textfield(t('E-mail address'), 'mail', $edit['mail'], 30, 64, t('A password and instructions will be sent to this e-mail address, so make sure it is accurate.')); + $default = form_textfield(t('Username'), 'name', $edit['name'], 30, 64, t('Your full name or your preferred username; only letters, numbers and spaces are allowed.'), NULL, TRUE); + $default .= form_textfield(t('E-mail address'), 'mail', $edit['mail'], 30, 64, t('A password and instructions will be sent to this e-mail address, so make sure it is accurate.'), NULL, TRUE); $extra = _user_forms($edit, $account, $category, 'register'); // Only display form_group around default fields if there are other groups. if ($extra) { |