| Versionen | |
|---|---|
| drupal6 – drupal7 | user_pass() |
Form builder; Request a password reset.
modules/
<?php
function user_pass() {
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Username or e-mail address'),
'#size' => 60,
'#maxlength' => max(USERNAME_MAX_LENGTH, EMAIL_MAX_LENGTH),
'#required' => TRUE,
);
$form['submit'] = array('#type' => 'submit', '#value' => t('E-mail new password'));
return $form;
}
?>
Kommentare
Kommentar hinzufügen