Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
vernond CreditAttribution: vernond commentedI 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:
Comment #2
quicksketchThat 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().
Comment #3
roball CreditAttribution: roball commentedThat would be the best IMO.
Comment #4
DanChadwick CreditAttribution: DanChadwick commentedI looked into this. For Drupal 7, the default options that are on are stored as follows:
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).