Commit dc61cba1 authored by nevergone's avatar nevergone Committed by greggles

Issue #2925405 by nevergone, DamienMcKenna: Notice in...

Issue #2925405 by nevergone, DamienMcKenna: Notice in comment_notify_form_user_form_alter() function
parent 62105329
......@@ -212,7 +212,7 @@ function comment_notify_form_user_form_alter(&$form, FormStateInterface &$form_s
$form['comment_notify_settings']['node_notify'] = array(
'#type' => 'checkbox',
'#title' => t('Receive content follow-up notification e-mails'),
'#default_value' => $notify_settings->node_notify,
'#default_value' => isset($notify_settings->node_notify) ? $notify_settings->node_notify : NULL,
'#description' => t('Check this box to receive an e-mail notification for follow-ups on your content. You can not disable notifications for individual threads.')
);
}
......@@ -228,7 +228,7 @@ function comment_notify_form_user_form_alter(&$form, FormStateInterface &$form_s
$form['comment_notify_settings']['comment_notify'] = array(
'#type' => 'select',
'#title' => t('Receive comment follow-up notification e-mails'),
'#default_value' => $notify_settings->comment_notify,
'#default_value' => isset ($notify_settings->comment_notify) ? $notify_settings->comment_notify : NULL,
'#options' => $available_options,
'#description' => t("Check this box to receive e-mail notification for follow-up comments to comments you posted. You can later disable this on a post-by-post basis... so if you leave this to YES, you can still disable follow-up notifications for comments you don't want follow-up mails anymore - i.e. for very popular posts.")
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment