I'm creating a heavily customised install profile/distribution and, similar to this issue (#1263584: Option to *not* create the default Webform content type), I need a way to prevent the Body field being automatically created and attached to the Webform content type.

An extra variable should do the trick...

CommentFileSizeAuthor
#1 webform_optional_body_field-1833040-1.patch440 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new440 bytes

This patch adds a variable 'webform_install_add_body_field' so the addition of the body field is optional (but defaults to TRUE).

quicksketch’s picture

Title: Make Webform body field optional » Make Webform body field optional during install
Status: Needs review » Fixed

Hi @BWPanda. Good suggestion. I was actually thinking we should ditch the body field by default, but let's make that change affect new versions of 4.x only. I've committed this patch to the 7.x-3.x branch as-is, and in the 7.x-4.x branch I've set the default to FALSE.

Anonymous’s picture

Awesome, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fixed issue link