function user_pass

7.x user.pages.inc user_pass()
6.x user.pages.inc user_pass()

Form builder; Request a password reset.

See also

user_pass_validate()

user_pass_submit()

Related topics

1 string reference to 'user_pass'
user_menu in drupal-6.x/modules/user/user.module
Implementation of hook_menu().

File

drupal-6.x/modules/user/user.pages.inc, line 30
User page callback file for the user module.

Code

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;
}