Skip to content
Snippets Groups Projects
Commit 68289adc authored by Lily Yan's avatar Lily Yan Committed by Igor Biki
Browse files

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

parent 95bd36f6
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
$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().
*
......
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