Skip to content

Commit 3d4cf54

Browse files
committed
MDL-4908 Forum: Add help for profile maildigest setting
1 parent b28118f commit 3d4cf54

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lang/en/moodle.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,13 @@
558558
<p>It contains easy instructions to complete your registration.</p>
559559
<p>If you continue to have difficulty, contact the site administrator.</p>';
560560
$string['emaildigest'] = 'Email digest type';
561+
$string['emaildigest_help'] = 'This is the daily digest setting that forums will use by default.
562+
563+
* No digest - you will receive one e-mail per forum post;
564+
* Digest - complete posts - you will receive one digest e-mail per day containing the complete contents of each forum post;
565+
* Digest - subjects only - you will receive one digest e-mail per day containing just the subject of each forum post.
566+
567+
You can also choose a different setting for each forum if you wish.';
561568
$string['emaildigestcomplete'] = 'Complete (daily email with full posts)';
562569
$string['emaildigestoff'] = 'No digest (single email per forum post)';
563570
$string['emaildigestsubjects'] = 'Subjects (daily email with subjects only)';

user/editlib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
208208
$choices['2'] = get_string('emaildigestsubjects');
209209
$mform->addElement('select', 'maildigest', get_string('emaildigest'), $choices);
210210
$mform->setDefault('maildigest', 0);
211+
$mform->addHelpButton('maildigest', 'emaildigest');
211212

212213
$choices = array();
213214
$choices['1'] = get_string('autosubscribeyes');

0 commit comments

Comments
 (0)