Wednesday, August 15, 2012

Drupal 7 Confirm Password form alter example

Description: Format a pair of password fields, which do not validate unless the two entered passwords match.
 
<?php
$form
['pass'] = array(
  '#type'
=> 'password_confirm',
  '#title'
=> t('Password'),
  '#size'
=> 25,
);
?>

No comments:

Post a Comment