Commit 9ca3de35 authored by Dries's avatar Dries

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

parent c1d4a90c
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment