user_pass

  1. drupal
    1. 4.7
    2. 5 user.module
    3. 6 user.pages.inc
    4. 7 user.pages.inc
Versions
4.7 – 7 user_pass()

Code

modules/user.module, line 1036

<?php
function user_pass() {

  // Display form:
  $form['name'] = array(
    '#type' => 'textfield', 
    '#title' => t('Username'), 
    '#size' => 30, 
    '#maxlength' => 60,
  );
  $form['mail'] = array(
    '#type' => 'textfield', 
    '#title' => t('E-mail address'), 
    '#size' => 30, 
    '#maxlength' => 64,
  );
  $form['submit'] = array(
    '#type' => 'submit', 
    '#value' => t('E-mail new password'), 
    '#weight' => 2,
  );
  return drupal_get_form('user_pass', $form);
}
?>