Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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

Have you tried installing the Save Draft module?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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