summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-03-11 08:43:59 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-03-11 08:43:59 +0000
commit7c63dbccc837624f93a0a13037a09e14d0474cdd (patch)
tree8f8ae32f63b788dbd99701ec7152452283ec124b /modules/node/node.module
parentcd31f11348adf0d2f2d608ed8eca4cd2a8e10e77 (diff)
downloadbrdo-7c63dbccc837624f93a0a13037a09e14d0474cdd.tar.gz
brdo-7c63dbccc837624f93a0a13037a09e14d0474cdd.tar.bz2
- Fixing typos.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 7e8975530..cbb475500 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -879,11 +879,11 @@ function node_validate($node, &$error) {
// Validate for normal users:
$node->uid = $user->uid ? $user->uid : 0;
// Force defaults in case people modify the form:
- $node->status = variable_get("node_status_$edit->type", 1);
- $node->promote = variable_get("node_promote_$edit->type", 1);
- $node->moderate = variable_get("node_moderate_$edit->type", 0);
- $node->static = variable_get("node_static_$edit->type", 0);
- $node->revision = variable_get("node_revision_$edit->type", 0);
+ $node->status = variable_get("node_status_$node->type", 1);
+ $node->promote = variable_get("node_promote_$node->type", 1);
+ $node->moderate = variable_get("node_moderate_$node->type", 0);
+ $node->static = variable_get("node_static_$node->type", 0);
+ $node->revision = variable_get("node_revision_$node->type", 0);
unset($node->created);
}