Commit abe8b243 authored by greggles's avatar greggles

feature #402988 by darktygur: Allow admin to set the node notify default

parent 6c2a377e
......@@ -288,7 +288,7 @@ function comment_notify_user($type, &$edit, &$user, $category = NULL) {
$form['comment_notify_settings']['node_notify_mailalert'] = array(
'#type' => 'checkbox',
'#title' => t('Receive node follow-up notification e-mails'),
'#default_value' => isset($edit['node_notify_mailalert']) ? $edit['node_notify_mailalert'] : FALSE,
'#default_value' => isset($edit['node_notify_mailalert']) ? $edit['node_notify_mailalert'] : variable_get('node_notify_default_mailalert', FALSE),
'#description' => t('Check this box to receive an e-mail notification for follow-ups on your nodes (pages, forum topics, etc). You can not disable notifications for individual threads.')
......@@ -606,6 +606,13 @@ function comment_notify_settings() {
'#options' => $available_options,
$form['comment_notify_settings']['node_notify_default_mailalert'] = array(
'#type' => 'checkbox',
'#title' => t('Subscribe users to their node follow-up notification emails by default'),
'#default_value' => variable_get('node_notify_default_mailalert', FALSE),
'#description' => t('If this is checked, new users will receive e-mail notifications for follow-ups on their nodes by default until they individually disable the feature.'),
$form['comment_notify_settings']['comment_notify_default_mailtext'] = array(
'#type' => 'textarea',
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment