Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9ca3de35
Commit
9ca3de35
authored
Sep 19, 2008
by
Dries
Browse files
- Patch
#254242
by Gabor, dropcube: preview post setting (optional, required) not working
parent
c1d4a90c
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/node/node.pages.inc
View file @
9ca3de35
...
...
@@ -236,6 +236,7 @@ function node_form(&$form_state, $node) {
$form
[
'buttons'
][
'#weight'
]
=
100
;
$form
[
'buttons'
][
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#access'
=>
!
variable_get
(
'node_preview'
,
0
)
||
(
!
form_get_errors
()
&&
isset
(
$form_state
[
'node_preview'
])),
'#value'
=>
t
(
'Save'
),
'#weight'
=>
5
,
'#submit'
=>
array
(
'node_form_submit'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment