function system_login_form

6.x system.module system_login_form()
4.x system.module system_login_form()
5.x system.module system_login_form()

This draws the form which facilitates logins.

File

modules/system/system.module, line 1554

Code

function system_login_form() {
  $form = array();

  fp_set_title("");

  $form ["user"] = array(
    "label" => t("User:"),
    "type" => "textfield",
    "size" => 30,
    "required" => TRUE,
  );

  $form ["password"] = array(
    "label" => t("Password:"),
    "type" => "password",
    "size" => 30,
    "required" => TRUE,
  );

  $form ["submit"] = array(
    "type" => "submit",
    "value" => t("Login"),
  );

  $form ["#attributes"] = array("onSubmit" => "showUpdate(true);");


  return $form;
}