Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
 * 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


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.