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
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -236,6 +236,7 @@ function node_form(&$form_state, $node) { ...@@ -236,6 +236,7 @@ function node_form(&$form_state, $node) {
$form['buttons']['#weight'] = 100; $form['buttons']['#weight'] = 100;
$form['buttons']['submit'] = array( $form['buttons']['submit'] = array(
'#type' => 'submit', '#type' => 'submit',
'#access' => !variable_get('node_preview', 0) || (!form_get_errors() && isset($form_state['node_preview'])),
'#value' => t('Save'), '#value' => t('Save'),
'#weight' => 5, '#weight' => 5,
'#submit' => array('node_form_submit'), '#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