Skip to content
Snippets Groups Projects
Commit 9ca3de35 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #254242 by Gabor, dropcube: preview post setting (optional, required) not working

parent c1d4a90c
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment