Skip to content
Snippets Groups Projects
Commit 6c810d09 authored by Vitalii Koval's avatar Vitalii Koval Committed by Artem Sylchuk
Browse files

Issue #3271454 by v.koval, sagesolutions, marciaibanez, artem_sylchuk: Clarify...

Issue #3271454 by v.koval, sagesolutions, marciaibanez, artem_sylchuk: Clarify settings form on user edit page
parent 8e554cd7
Branches
Tags
1 merge request!92Issue #15416752 by v.koval: Clarify settings form on user edit page
......@@ -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' => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment