Commit 0439e349 authored by Dries's avatar Dries

- Fixed password field.
parent 01979d43
......@@ -734,7 +734,7 @@ function form_radio($title, $name, $value = 1, $checked = 0, $description = NULL
}
function form_checkbox($title, $name, $value = 1, $checked = 0, $description = NULL, $attributes = NULL) {
return form_hidden($name, 0) . theme("form_element", 0, "<input type=\"checkbox\" class=\"form-checkbox\" name=\"edit[$name]\" id=\"$name\" value=\"". $value ."\"". ($checked ? " checked=\"checked\"" : "") . drupal_attributes($attributes) ." /> $title", $description, $name);
return form_hidden($name, 0) . theme("form_element", NULL, "<input type=\"checkbox\" class=\"form-checkbox\" name=\"edit[$name]\" id=\"$name\" value=\"". $value ."\"". ($checked ? " checked=\"checked\"" : "") . drupal_attributes($attributes) ." /> $title", $description, $name);
}
function form_textfield($title, $name, $value, $size, $maxlength, $description = NULL, $attributes = NULL) {
......
......@@ -355,7 +355,7 @@ function user_block($op = "list", $delta = 0) {
$form .= form_password(t("Password"), "pass", $pass, 15, 64);
if (variable_get("user_remember", 0) == 0) {
$form .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0);
$form .= form_checkbox(t("Remember me"), "remember_me");
}
elseif (variable_get("user_remember", 1) == 1) {
$form .= form_hidden("remember_me", 1);
......
......@@ -355,7 +355,7 @@ function user_block($op = "list", $delta = 0) {
$form .= form_password(t("Password"), "pass", $pass, 15, 64);
if (variable_get("user_remember", 0) == 0) {
$form .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0);
$form .= form_checkbox(t("Remember me"), "remember_me");
}
elseif (variable_get("user_remember", 1) == 1) {
$form .= form_hidden("remember_me", 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment