From 6c810d097f74aeff9cd3b61a8ea5091fce19a67d Mon Sep 17 00:00:00 2001 From: Vitalii Koval <62148-vital_kovalik@users.noreply.drupalcode.org> Date: Sat, 27 Jan 2024 15:12:45 +0000 Subject: [PATCH] Issue #3271454 by v.koval, sagesolutions, marciaibanez, artem_sylchuk: Clarify settings form on user edit page --- private_message.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/private_message.module b/private_message.module index 487bda2e..3fac37c8 100644 --- a/private_message.module +++ b/private_message.module @@ -405,7 +405,7 @@ function private_message_form_user_form_alter(array &$form, FormStateInterface $ $form['private_messages']['receive_notification'] = [ '#type' => 'checkbox', - '#title' => t('Receive notification of private messages'), + '#title' => t('Receive email notification of private messages'), '#default_value' => $default_value, ]; if (!empty($user_data)) { @@ -415,13 +415,13 @@ function private_message_form_user_form_alter(array &$form, FormStateInterface $ $default_value = is_null($user_setting) ? $config->get('notify_when_using') : $user_setting; $form['private_messages']['notify_when_using'] = [ '#type' => 'radios', - '#title' => t('Send notifications of new messages in a thread'), + '#title' => t('Send email notifications of new messages in a thread'), '#options' => [ 'yes' => t('For every private message'), 'no' => t('Only when not viewing the thread'), ], '#default_value' => $default_value, - '#description' => t('Whether or not notifications should be sent when you are viewing a thread'), + '#description' => t('Whether or not email notifications should be sent when you are viewing a thread'), '#states' => [ 'visible' => [ ':input[name="private_messages[receive_notification]"]' => ['checked' => TRUE], @@ -453,7 +453,7 @@ function private_message_form_user_form_alter(array &$form, FormStateInterface $ $default_value = isset($options[$default_value]) ? $default_value : 300; $form['private_messages']['number_of_seconds_considered_away'] = [ '#type' => 'select', - '#title' => t('Amount of time after leaving a thread that the system starts sending notifications of new messages'), + '#title' => t('Amount of time after leaving a thread that the system starts sending email notifications of new messages'), '#options' => $options, '#default_value' => $default_value, '#states' => [ -- GitLab