You are here

function user_pass in Drupal 4

Same name and namespace in other branches
  1. 5 modules/user/user.module \user_pass()
  2. 6 modules/user/user.pages.inc \user_pass()
  3. 7 modules/user/user.pages.inc \user_pass()
1 string reference to 'user_pass'
user_menu in modules/user.module
Implementation of hook_menu().

File

modules/user.module, line 1035
Enables the user registration and login system.

Code

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