- submit page will now use $edit[teaser/body] if available in the initial request.
parent
1e97129589
commit
1ff4da96e3
|
@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
|
|||
}
|
||||
|
||||
function node_add($type) {
|
||||
global $user;
|
||||
global $user, $edit;
|
||||
|
||||
if (!user_access("post content")) {
|
||||
return message_access();
|
||||
|
@ -928,7 +928,7 @@ function node_add($type) {
|
|||
|
||||
if ($type && node_access("create", $type)) {
|
||||
// Initialize settings
|
||||
$output = node_form(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));
|
||||
$output = node_form(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, "title" => check_input($edit["title"]), "body" => check_input($edit["body"])));
|
||||
}
|
||||
else {
|
||||
|
||||
|
|
|
@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
|
|||
}
|
||||
|
||||
function node_add($type) {
|
||||
global $user;
|
||||
global $user, $edit;
|
||||
|
||||
if (!user_access("post content")) {
|
||||
return message_access();
|
||||
|
@ -928,7 +928,7 @@ function node_add($type) {
|
|||
|
||||
if ($type && node_access("create", $type)) {
|
||||
// Initialize settings
|
||||
$output = node_form(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));
|
||||
$output = node_form(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, "title" => check_input($edit["title"]), "body" => check_input($edit["body"])));
|
||||
}
|
||||
else {
|
||||
|
||||
|
|
Loading…
Reference in New Issue