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

ISTWCMS-6446 Remove 'Site email address' from Other under 'BCC email'

parent 99fec46b
No related branches found
No related tags found
1 merge request!360ISTWCMS-6446 Prevent people from using [site:email] for webform email handlers
......@@ -723,6 +723,9 @@ function uw_cfg_common_form_webform_handler_form_alter(array &$form, FormStateIn
// CC email: Set 'Webform author email address' as default.
$form['settings']['to']['cc_mail']['cc_mail']['#default_value'] = "[webform:author:mail]";
// BCC email: remove 'Site email address' option under Other.
array_shift($form['settings']['to']['bcc_mail']['bcc_mail']['#options']['Other']);
}
}
......
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