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

ISTWCMS-2509: Move Webform configuration from uw_sites_all

parent b57bd56b
No related branches found
No related tags found
No related merge requests found
......@@ -19,3 +19,17 @@ function uw_cfg_common_form_layout_builder_configure_section_alter(array &$form,
// Ensuring that the contained width is selected by default.
$form['layout_builder_style']['#default_value'] = $form['layout_builder_style']['#default_value'] ?: 'uw-contained-width';
}
/**
* Implements hook_form_FORM_ID_alter().
*/
function uw_cfg_common_form_webform_settings_confirmation_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void {
// Remove undesirable Webform submission confirmation types. These appear on
// admin/structure/webform/manage/*/settings/confirmation.
// The 'modal' type is just a different way to display the message. Disable
// for consistency.
unset($form['confirmation_type']['confirmation_type']['#options']['modal']);
// The 'none' type is only useful along with a custom handler which provides
// the confirmation message.
unset($form['confirmation_type']['confirmation_type']['#options']['none']);
}
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