summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-03 14:08:30 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-03 14:08:30 +0000
commit8c1560c75694a701a5fce69d0b5b2c19dd218678 (patch)
treef7593425b4666786f630316b57aa6e8f06a97cc3
parent4b9a3cf73ea6f4ffe5a9f18747ecad043a32a14f (diff)
downloadbrdo-8c1560c75694a701a5fce69d0b5b2c19dd218678.tar.gz
brdo-8c1560c75694a701a5fce69d0b5b2c19dd218678.tar.bz2
- Forgot this with last commit.
-rw-r--r--includes/form.inc14
1 files changed, 11 insertions, 3 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 9aae8e49a..5d838002f 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -839,15 +839,23 @@ function theme_radios($element) {
* A themed HTML string representing the form item.
*/
function theme_password_confirm($element) {
- return theme('form_element', $element, '<div class="container-inline">'. $element['#children'] .'</div>');
+ return theme('form_element', $element, $element['#children']);
}
/*
* Expand a password_confirm field into two text boxes.
*/
function expand_password_confirm($element) {
- $element['pass1'] = array('#type' => 'password', '#size' => 12, '#value' => $element['#value']['pass1']);
- $element['pass2'] = array('#type' => 'password', '#size' => 12, '#value' => $element['#value']['pass2']);
+ $element['pass1'] = array(
+ '#type' => 'password',
+ '#title' => t('Password'),
+ '#value' => $element['#value']['pass1'],
+ );
+ $element['pass2'] = array(
+ '#type' => 'password',
+ '#title' => t('Confirm password'),
+ '#value' => $element['#value']['pass2'],
+ );
$element['#validate'] = array('password_confirm_validate' => array());
$element['#tree'] = TRUE;