summaryrefslogtreecommitdiffstats
path: root/comment_notify.module
diff options
context:
space:
mode:
authorGreg (greggles) Knaddison2009-10-20 22:14:06 (GMT)
committerGreg (greggles) Knaddison2009-10-20 22:14:06 (GMT)
commitabe8b243cf12e5a281f2f4842c66046d270044db (patch)
treea970b48d3cbcac87befa7a1377bd61ea4f6f32ba /comment_notify.module
parent6c2a377e72cc5b75831f7aba18a6734604d165a7 (diff)
feature #402988 by darktygur: Allow admin to set the node notify default
Diffstat (limited to 'comment_notify.module')
-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',