On a completely fresh install of Drupal 6.x with Webform 6.x-3.17, per default the checkboxes "Published" and "Promoted to front page" are ticked at admin/content/node-type/webform under "Workflow settings -> Default options".

I don't see any advantage in having "Promoted to front page" set by default. For example's, core's "Page" content type does not have it set. So one of the first tasks after setting up a new Drupal site is always to untick that checkbox for the "Webform" content type. Why can't this be disabled by default?

Comments

vernond’s picture

I have this in my custom installation profile (because we do a bunch of multi-site things), but you could probably achieve similar by adding it to your settings.php:

  // Set "Webform" nodes to published, but not promoted to front page.
  variable_set('node_published_webform', TRUE);
  variable_set('node_promoted_webform', FALSE);
quicksketch’s picture

Priority: Normal » Minor

That sounds reasonable to me. The only reason it's on by default is because Drupal makes it on by default in node_type_set_defaults(). We can easily set the promoted option to FALSE in webform_install().

roball’s picture

We can easily set the promoted option to FALSE in webform_install().

That would be the best IMO.

DanChadwick’s picture

Version: 6.x-3.17 » 7.x-4.x-dev
Issue summary: View changes
Status: Active » Closed (won't fix)

I looked into this. For Drupal 7, the default options that are on are stored as follows:

variable_get('node_options_' . $type->type, array('status', 'promote'))

I'm not really keen on mucking about in node_options_webform that much, so absent a patch or argument, I think everyone will just continue to uncheck the checkbox (which I agree should probably be false by default, but that's a core issue).