summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--comment_notify.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/comment_notify.module b/comment_notify.module
index ab539d5..6161310 100644
--- a/comment_notify.module
+++ b/comment_notify.module
@@ -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',