Skip to content
Snippets Groups Projects
Commit 7ebc8ddd authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4882: Make default Webform confirmation type be "inline"

parent a414b11f
No related branches found
No related tags found
1 merge request!166ISTWCMS-4882: Make default Webform confirmation type be "inline"
......@@ -378,6 +378,10 @@ function uw_cfg_common_webform_create(WebformInterface $webform) {
$webform->setSetting('purge', WebformSubmissionStorageInterface::PURGE_DRAFT);
$webform->setSetting('purge_days', 28);
// On admin/structure/webform/manage/FORM/settings/confirmation, default
// "Confirmation type" to "inline".
$webform->setSetting('confirmation_type', 'inline');
// Set so that uw_cfg_common_webform_build_access_denied_alter() will run.
// This value is tested for in Webform::preRenderWebformElement().
$webform->setSetting('form_access_denied', 'page');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment