Skip to content

Commit

Permalink
MDL-47360 tool_monitor: add more help link and default template message
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Nov 5, 2014
1 parent 6ce4b8e commit 0194d87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion admin/tool/monitor/classes/rule_form.php
Expand Up @@ -123,7 +123,8 @@ public function definition () {

// Message template.
$mform->addElement('editor', 'template', get_string('messagetemplate', 'tool_monitor'), $editoroptions);
$mform->setDefault('template', get_string('defaultmessagetemplate', 'tool_monitor'));
$mform->setDefault('template', array('text' => get_string('defaultmessagetemplate', 'tool_monitor'),
'format' => FORMAT_HTML));
$mform->addRule('template', get_string('required'), 'required');
$mform->addHelpButton('template', 'messagetemplate', 'tool_monitor');

Expand Down
3 changes: 2 additions & 1 deletion admin/tool/monitor/lang/en/tool_monitor.php
Expand Up @@ -31,7 +31,7 @@
$string['areatomonitor'] = 'Area to monitor';
$string['core'] = 'Core';
$string['currentsubscriptions'] = 'Your current subscriptions';
$string['defaultmessagetemplate'] = 'The rule "{rulename}" you have subscribed to has occurred - please find further details at {link}';
$string['defaultmessagetemplate'] = 'Rule name: {rulename}<br />Description: {description}<br />Event name: {eventname}';
$string['deleterule'] = 'Delete rule';
$string['deletesubscription'] = 'Delete subscription';
$string['description'] = 'Description:';
Expand Down Expand Up @@ -67,6 +67,7 @@
* Rule name {rulename}<br />
* Description {description}<br />
* Event {eventname}';
$string['messagetemplate_link'] = 'admin/tool/monitor/managerules';
$string['moduleinstance'] = 'Instance';
$string['monitor:managerules'] = 'Manage event monitor rules';
$string['monitor:subscribe'] = 'Subscribe to event monitor rules';
Expand Down

0 comments on commit 0194d87

Please sign in to comment.