I have a situation where, when I create a new webform node, its "Save draft" button must be there by default.

How can I achieve this?

 * Implements hook_webform_node_defaults_alter().
function mymodule_webform_node_defaults_alter(&$defaults) {
  $defaults['allow_draft'] = '1';
| improve this answer | |

Have you tried installing the Save Draft module?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.