Skip to content
Snippets Groups Projects
Commit ca07ff36 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed typo: "Allow users comments" -> "Allow user comments"

- By default, "Allow user comments" is set to "read-write".
parent 8f5860ab
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -927,7 +927,7 @@ function node_form($edit, $error = NULL) { ...@@ -927,7 +927,7 @@ function node_form($edit, $error = NULL) {
$output .= form_select(t("Static on front page"), "static", $edit->static, array(t("Disabled"), t("Enabled"))); $output .= form_select(t("Static on front page"), "static", $edit->static, array(t("Disabled"), t("Enabled")));
// TODO: move this to the comment.module // TODO: move this to the comment.module
if (module_exist("comment")) { if (module_exist("comment")) {
$output .= form_select(t("Allow users comments"), "comment", $edit->comment, array(t("Disabled"), t("Read only"), t("Read-write"))); $output .= form_select(t("Allow user comments"), "comment", $edit->comment, array(t("Disabled"), t("Read only"), t("Read-write")));
} }
$output .= form_select(t("Create new revision"), "revision", $edit->revision, array(t("Disabled"), t("Enabled"))); $output .= form_select(t("Create new revision"), "revision", $edit->revision, array(t("Disabled"), t("Enabled")));
} }
...@@ -949,7 +949,7 @@ function node_add($type) { ...@@ -949,7 +949,7 @@ function node_add($type) {
if ($type && node_access("create", $type)) { if ($type && node_access("create", $type)) {
// Initialize settings // Initialize settings
$node = array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => module_exist("queue") ? 2 : 0); $node = array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => 2);
foreach (array("title", "teaser", "body") as $field) { foreach (array("title", "teaser", "body") as $field) {
if ($edit[$field]) { if ($edit[$field]) {
$node[$field] = check_input($edit[$field]); $node[$field] = check_input($edit[$field]);
......
...@@ -927,7 +927,7 @@ function node_form($edit, $error = NULL) { ...@@ -927,7 +927,7 @@ function node_form($edit, $error = NULL) {
$output .= form_select(t("Static on front page"), "static", $edit->static, array(t("Disabled"), t("Enabled"))); $output .= form_select(t("Static on front page"), "static", $edit->static, array(t("Disabled"), t("Enabled")));
// TODO: move this to the comment.module // TODO: move this to the comment.module
if (module_exist("comment")) { if (module_exist("comment")) {
$output .= form_select(t("Allow users comments"), "comment", $edit->comment, array(t("Disabled"), t("Read only"), t("Read-write"))); $output .= form_select(t("Allow user comments"), "comment", $edit->comment, array(t("Disabled"), t("Read only"), t("Read-write")));
} }
$output .= form_select(t("Create new revision"), "revision", $edit->revision, array(t("Disabled"), t("Enabled"))); $output .= form_select(t("Create new revision"), "revision", $edit->revision, array(t("Disabled"), t("Enabled")));
} }
...@@ -949,7 +949,7 @@ function node_add($type) { ...@@ -949,7 +949,7 @@ function node_add($type) {
if ($type && node_access("create", $type)) { if ($type && node_access("create", $type)) {
// Initialize settings // Initialize settings
$node = array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => module_exist("queue") ? 2 : 0); $node = array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => 2);
foreach (array("title", "teaser", "body") as $field) { foreach (array("title", "teaser", "body") as $field) {
if ($edit[$field]) { if ($edit[$field]) {
$node[$field] = check_input($edit[$field]); $node[$field] = check_input($edit[$field]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment