MDL-50142 user: context sensitive help
authorBen Tindell <btindell@umn.edu>
Fri, 8 May 2015 14:46:22 +0000 (09:46 -0500)
committerDavid Monllao <davidm@moodle.com>
Mon, 5 Oct 2015 01:32:32 +0000 (09:32 +0800)
Added context sensitive help to
Edit Profile > Text Editor

lang/en/moodle.php
user/editor_form.php

index 47cd797..e046847 100644 (file)
@@ -1826,6 +1826,7 @@ $string['teacheronly'] = 'for the {$a} only';
 $string['teacherroles'] = '{$a} roles';
 $string['teachers'] = 'Teachers';
 $string['textediting'] = 'Text editor';
+$string['textediting_help'] = 'Use this option to select the editor that you would like to use when entering text. This will include, but is not limited to, areas such as labels, descriptions, and summaries. If you select "Plain text area", all text entry areas with allow you to use HTML format, Moodle auto-format, Plain text format, or Markdown format.';
 $string['texteditor'] = 'Use standard web forms';
 $string['textformat'] = 'Plain text format';
 $string['thanks'] = 'Thanks';
index b0c24cf..248499c 100644 (file)
@@ -55,6 +55,7 @@ class user_edit_editor_form extends moodleform {
                 $choices[$editor] = get_string('pluginname', 'editor_' . $editor);
             }
             $mform->addElement('select', 'preference_htmleditor', get_string('textediting'), $choices);
+            $mform->addHelpButton('preference_htmleditor', 'textediting');
             $mform->setDefault('preference_htmleditor', '');
         } else {
             // Empty string means use the first chosen text editor.