Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2011 at 18:26 UTC
Updated:
2 Apr 2013 at 14:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
damienmckennaHere's a patch for D7 that uses a new variable, "webform_create_content_type", that only lets the installer run if the variable is TRUE, which incidentally is the default. Limited use, but hopefully will help for a few use cases.
Comment #2
damienmckennaComment #3
damienmckennaA patch for D6.
Comment #4
quicksketchThanks, although a crazy edge-case, I can see how I might want such a thing if I were building a distribution also.
I committed this patch but with a change. I renamed the variable to "webform_install_create_content_type", which is wildly verbose but having the word "install" in there makes it clear to me that this is something only needed during install.
Comment #6
alisonHi all,
I'd really like to set this variable so Webform module won't create the default webform content type, but I can't figure out how to do so. I figure I'd put
variable_setsomewhere, but I don't know where, and I'm striking out with trial-and-error so far.I have an install profile to work with, and a Feature with a custom content type, Webform as a dependency, and the webform_node_types variable (the content type is webform-enabled).
Thank you for your help!
Comment #7
damienmckenna@alisonjo2786: Add this line to your site's settings.php:
You could also use Drush:
drush vset webform_install_create_content_type FALSEComment #8
alison@DamienMcKenna -- thank you for your quick reply. that's so simple!! thanks!