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

ISTWCMS-2507: Move Webform configuration from uw_sites_all

parent e8bdf427
No related branches found
No related tags found
No related merge requests found
......@@ -33,3 +33,13 @@ function uw_cfg_common_form_webform_settings_confirmation_form_alter(array &$for
// the confirmation message.
unset($form['confirmation_type']['confirmation_type']['#options']['none']);
}
/**
* Implements hook_form_FORM_ID_alter().
*/
function uw_cfg_common_form_webform_settings_form_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void {
// Unset the source entity settings in webforms.
unset($form['form_behaviors']['form_prepopulate_source_entity']);
unset($form['form_behaviors']['form_prepopulate_source_entity_required']);
unset($form['form_behaviors']['form_prepopulate_source_entity_type']);
}
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