Skip to content
Snippets Groups Projects
Commit 8c1560c7 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Forgot this with last commit.

parent 4b9a3cf7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment