You are here

function expand_password_confirm in Drupal 4

Same name and namespace in other branches
  1. 5 includes/form.inc \expand_password_confirm()
  2. 6 includes/form.inc \expand_password_confirm()

Related topics

File

includes/form.inc, line 769

Code

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['#validate'] = array(
    'password_confirm_validate' => array(),
  );
  $element['#tree'] = TRUE;
  return $element;
}