MDL-21695 example of help_icon() conversion
authorPetr Skoda <skodak@moodle.org>
Tue, 13 Apr 2010 22:08:28 +0000 (22:08 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 13 Apr 2010 22:08:28 +0000 (22:08 +0000)
AMOS BEGIN
 HLP feedback/preview.html,[preview_hlp,mod_feedback]
AMOS END

lang/en/help/feedback/preview.html [deleted file]
mod/feedback/edit.php
mod/feedback/lang/en/feedback.php

diff --git a/lang/en/help/feedback/preview.html b/lang/en/help/feedback/preview.html
deleted file mode 100644 (file)
index 42548ad..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<h2>Preview</h2>
-
-<p>
-In the preview you can change the position order of questions.
-</p>
-
index 64c7b86..56f39e9 100644 (file)
@@ -215,7 +215,7 @@ if($do_show == 'edit') {
     if(is_array($feedbackitems)){
         $itemnr = 0;
 
     if(is_array($feedbackitems)){
         $itemnr = 0;
 
-        $helpbutton = $OUTPUT->old_help_icon('preview', get_string('preview','feedback'), 'feedback',true);
+        $helpbutton = $OUTPUT->help_icon('preview', 'feedback');
 
         echo $OUTPUT->heading($helpbutton . get_string('preview', 'feedback'));
         if(isset($SESSION->feedback->moving) AND $SESSION->feedback->moving->shouldmoving == 1) {
 
         echo $OUTPUT->heading($helpbutton . get_string('preview', 'feedback'));
         if(isset($SESSION->feedback->moving) AND $SESSION->feedback->moving->shouldmoving == 1) {
index 6aaf40b..af9d9f3 100644 (file)
@@ -167,6 +167,7 @@ $string['picture_file_list'] = 'List of pictures';
 $string['picture_values'] = 'Choose one or more<br />picture files from the list:';
 $string['position'] = 'Position';
 $string['preview'] = 'Preview';
 $string['picture_values'] = 'Choose one or more<br />picture files from the list:';
 $string['position'] = 'Position';
 $string['preview'] = 'Preview';
+$string['preview_hlp'] = 'In the preview you can change the position order of questions.';
 $string['previous_page'] = 'Previous page';
 $string['public'] = 'Public';
 $string['question'] = 'Question';
 $string['previous_page'] = 'Previous page';
 $string['public'] = 'Public';
 $string['question'] = 'Question';