summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-24 14:39:08 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-24 14:39:08 +0000
commitca07ff36d600e778a71dbe52dce9e82c3f1ebd92 (patch)
tree9ef69adae37a6acd9875499ca95ba0ec8b486892 /modules/node
parent8f5860ab47a40685e59f456e4d15bfb444403a24 (diff)
downloadbrdo-ca07ff36d600e778a71dbe52dce9e82c3f1ebd92.tar.gz
brdo-ca07ff36d600e778a71dbe52dce9e82c3f1ebd92.tar.bz2
- Fixed typo: "Allow users comments" -> "Allow user comments"
- By default, "Allow user comments" is set to "read-write".
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index c4d515e6f..7251d4fc2 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -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")));
// TODO: move this to the comment.module
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")));
}
@@ -949,7 +949,7 @@ function node_add($type) {
if ($type && node_access("create", $type)) {
// 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) {
if ($edit[$field]) {
$node[$field] = check_input($edit[$field]);