Skip to content
Snippets Groups Projects
Commit c79b6692 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-5885 Remove ability to set CSS classes, CSS styles and custom...

ISTWCMS-5885 Remove ability to set CSS classes, CSS styles and custom attributes (YAML) for webform elements
parent 5a64dc07
No related branches found
No related tags found
3 merge requests!289ISTWCMS-5885 Remove ability to set CSS classes, CSS styles and custom...,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -192,6 +192,15 @@ function uw_cfg_common_form_webform_admin_config_submissions_form_alter(array &$ ...@@ -192,6 +192,15 @@ function uw_cfg_common_form_webform_admin_config_submissions_form_alter(array &$
$form['views_settings']['#access'] = FALSE; $form['views_settings']['#access'] = FALSE;
} }
/**
* Implements hook_form_FORM_ID_alter().
*
* Remove wrapper attributes in admin/structure/webform/manage/{webform_id}.
*/
function uw_cfg_common_form_webform_ui_element_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void {
$form['properties']['wrapper_attributes']['#access'] = FALSE;
}
/** /**
* Implements hook_form_FORM_ID_alter(). * Implements hook_form_FORM_ID_alter().
* *
......
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