Skip to content
Snippets Groups Projects
Commit 986672fc authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch...

Merge branch 'feature/ISTWCMS-5613-l26yan-Add-help-text-to-send-from-in-webform-email-handler' into '1.0.x'

ISTWCMS-5613 Add help text to send from in webform email handler

See merge request !248
parents 95bd36f6 68289adc
No related branches found
No related tags found
1 merge request!248ISTWCMS-5613 Add help text to send from in webform email handler
...@@ -413,6 +413,18 @@ function uw_cfg_common_form_webform_settings_form_alter(array &$form, FormStateI ...@@ -413,6 +413,18 @@ function uw_cfg_common_form_webform_settings_form_alter(array &$form, FormStateI
$form['ajax_settings']['#access'] = FALSE; $form['ajax_settings']['#access'] = FALSE;
} }
/**
* Implements hook_form_FORM_ID_alter().
*
* Configure admin/structure/webform/manage/WEBFORM_ID/handlers.
*/
function uw_cfg_common_form_webform_handler_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void {
// Add help text to 'SEND FROM (WEBSITE/DOMAIN)' in webform email handler.
if ($form['#webform_handler_plugin_id'] === 'email') {
$form['settings']['from']['#description'] = t('This must be an <strong>@uwaterloo.ca</strong> email address for sending to succeed. Please consider using the reply-to email option instead when emails are not limited to campus accounts.');
}
}
/** /**
* 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