From 66e1bbfb937cab81c5943c264ff52208b0a71286 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Thu, 23 May 2002 14:14:48 +0000 Subject: - pending user accounts will not be notified to the site_email. - fixed access checks on the register form, do this before you enter the _save function. If registrations are disabled the register link will no longer show (again). - changed » to », using the names of entities are better than the numbers. - fixed user information being set when account is registered (properly this time, really!) - reversed the if(!...) commit. - node_add specifies more defaults. - added link to blog entries from user page. --- modules/node.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index a74dacaf3..635d9a725 100644 --- a/modules/node.module +++ b/modules/node.module @@ -892,7 +892,8 @@ function node_add($type) { */ if ($type && node_access("create", $type)) { - $output = node_form(array("uid" => $user->uid, "name" => $user->name, "type" => $type)); + // Initialize settings + $output = node_form(array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "moderate" => 1, "comment" => 2)); } else { -- cgit v1.2.3