Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
1ff4da96
Commit
1ff4da96
authored
22 years ago
by
Kjartan Mannes
Browse files
Options
Downloads
Patches
Plain Diff
- submit page will now use $edit[teaser/body] if available in the initial request.
parent
1e971295
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/node.module
+2
-2
2 additions, 2 deletions
modules/node.module
modules/node/node.module
+2
-2
2 additions, 2 deletions
modules/node/node.module
with
4 additions
and
4 deletions
modules/node.module
+
2
−
2
View file @
1ff4da96
...
@@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
...
@@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
}
}
function
node_add
(
$type
)
{
function
node_add
(
$type
)
{
global
$user
;
global
$user
,
$edit
;
if
(
!
user_access
(
"post content"
))
{
if
(
!
user_access
(
"post content"
))
{
return
message_access
();
return
message_access
();
...
@@ -928,7 +928,7 @@ function node_add($type) {
...
@@ -928,7 +928,7 @@ function node_add($type) {
if
(
$type
&&
node_access
(
"create"
,
$type
))
{
if
(
$type
&&
node_access
(
"create"
,
$type
))
{
// Initialize settings
// 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
{
else
{
...
...
This diff is collapsed.
Click to expand it.
modules/node/node.module
+
2
−
2
View file @
1ff4da96
...
@@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
...
@@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
}
}
function
node_add
(
$type
)
{
function
node_add
(
$type
)
{
global
$user
;
global
$user
,
$edit
;
if
(
!
user_access
(
"post content"
))
{
if
(
!
user_access
(
"post content"
))
{
return
message_access
();
return
message_access
();
...
@@ -928,7 +928,7 @@ function node_add($type) {
...
@@ -928,7 +928,7 @@ function node_add($type) {
if
(
$type
&&
node_access
(
"create"
,
$type
))
{
if
(
$type
&&
node_access
(
"create"
,
$type
))
{
// Initialize settings
// 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
{
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment