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 2611

Code

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

  fp_set_title("");


  // If we are coming from having just logged out, display a message.
  if (isset($_REQUEST ["logout"]) && $_REQUEST ["logout"] == "true") {
    fp_add_message(t("You have been logged out of @FlightPath.", array("@FlightPath" => variable_get("system_name", "FlightPath"))), "status", TRUE);
  }


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