diff --git a/admin/index.php b/admin/index.php
index 46c4bd4ab70..1fe7be1d1c5 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -380,7 +380,7 @@ if (defined('WARN_DISPLAY_ERRORS_ENABLED')) {
$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');
if (time() - $lastcron > 3600 * 24) {
$strinstallation = get_string('installation', 'install');
- $helpbutton = $OUTPUT->help_icon(moodle_help_icon::make('install', $strinstallation));
+ $helpbutton = $OUTPUT->help_icon('install', $strinstallation);
echo $OUTPUT->box(get_string('cronwarning', 'admin').' '.$helpbutton, 'generalbox adminwarning');
}
diff --git a/admin/lang.php b/admin/lang.php
index b80df3dd60a..f1d04684c11 100644
--- a/admin/lang.php
+++ b/admin/lang.php
@@ -496,7 +496,7 @@
$select->nothinglabel = $strchoosefiletoedit;
$select->set_label($selectionlabel);
echo $OUTPUT->select($select);
- echo $OUTPUT->help_icon(moodle_help_icon::make('langswitchstorage', $strfilestoredinhelp));
+ echo $OUTPUT->help_icon('langswitchstorage', $strfilestoredinhelp);
echo $OUTPUT->box_end();
if ($currentfile <> '') {
@@ -763,7 +763,7 @@
$select->nothinglabel = $strchoosefiletoedit;
$select->set_label($selectionlabel);
echo $OUTPUT->select($select);
- echo $OUTPUT->help_icon(moodle_help_icon::make('langswitchstorage', $strfilestoredinhelp));
+ echo $OUTPUT->help_icon('langswitchstorage', $strfilestoredinhelp);
echo $OUTPUT->box_end();
if (!empty($currentfile)) {
@@ -812,11 +812,11 @@
echo '
';
if ($uselocal) {
- $strsavetotitle = $strlanglocalpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlanglocalpackage));
- $straltdirtitle = $strlangmasterpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlangmasterpackage));
+ $strsavetotitle = $strlanglocalpackage . $OUTPUT->help_icon('langpackages', $strlanglocalpackage);
+ $straltdirtitle = $strlangmasterpackage . $OUTPUT->help_icon('langpackages', $strlangmasterpackage);
} else {
- $straltdirtitle = $strlanglocalpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlanglocalpackage));
- $strsavetotitle = $strlangmasterpackage . $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlangmasterpackage));
+ $straltdirtitle = $strlanglocalpackage . $OUTPUT->help_icon('langpackages', $strlanglocalpackage);
+ $strsavetotitle = $strlangmasterpackage . $OUTPUT->help_icon('langpackages', $strlangmasterpackage);
}
@@ -876,7 +876,7 @@
}
if (is_readable($ensrc)) {
echo '
'.$strlangmasterenglish;
- echo $OUTPUT->help_icon(moodle_help_icon::make('langpackages', $strlangmasterenglish));
+ echo $OUTPUT->help_icon('langpackages', $strlangmasterenglish);
echo ' ';
echo "\n";
$baseurl = $CFG->wwwroot.'/course/report/participation/index.php?id='.$course->id.'&roleid='
@@ -281,7 +281,7 @@
$select->label = get_string("withselectedusers");
$select->add_action('change', 'conditionalsubmit', array('formid' => 'studentsform'));
echo $OUTPUT->select($select);
- echo $OUTPUT->help_icon(moodle_help_icon::make("participantswithselectedusers", get_string("withselectedusers")));
+ echo $OUTPUT->help_icon("participantswithselectedusers", get_string("withselectedusers"));
echo ' '."\n";
echo ' '."\n";
echo ''."\n";
diff --git a/enrol/authorize/config_form.php b/enrol/authorize/config_form.php
index 26d6bc7e2db..a7d4466ac6d 100755
--- a/enrol/authorize/config_form.php
+++ b/enrol/authorize/config_form.php
@@ -131,7 +131,7 @@ if (!isset($frm->acceptechecktypes)) {
an_authcode:
checkbox(html_select_option::make_checkbox('1', !empty($frm->an_authcode), get_string("adminauthcode", "enrol_authorize")), 'an_authcode'); ?>
- help_icon(moodle_help_icon::make('authorize/authcode', 'authcode', 'enrol')); ?>
+ help_icon('authorize/authcode', 'authcode', 'enrol'); ?>
@@ -177,20 +177,20 @@ if (!isset($frm->acceptechecktypes)) {
- help_icon(moodle_help_icon::make('authorize/orderreview', 'orderreview', 'enrol')); ?>
+ help_icon('authorize/orderreview', 'orderreview', 'enrol'); ?>
an_review:
checkbox(html_select_option::make_checkbox('1', !empty($frm->an_review), get_string("adminreview", "enrol_authorize")), 'an_review'); ?>
- help_icon(moodle_help_icon::make('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol')); ?>
+ help_icon('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol'); ?>
an_capture_day:
- help_icon(moodle_help_icon::make('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol')); ?>
+ help_icon('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol'); ?>
an_capture_day) ?>
diff --git a/enrol/authorize/uploadcsv.php b/enrol/authorize/uploadcsv.php
index 417f463d781..845ef8d4b7d 100644
--- a/enrol/authorize/uploadcsv.php
+++ b/enrol/authorize/uploadcsv.php
@@ -23,11 +23,7 @@
$PAGE->set_button($managebutton);
echo $OUTPUT->header();
- $helpicon = new moodle_help_icon();
- $helpicon->text = $struploadcsv;
- $helpicon->page = 'authorize/uploadcsv';
- $helpicon->module = 'enrol';
- echo $OUTPUT->heading_with_help($helpicon);
+ echo $OUTPUT->heading_with_help($struploadcsv, 'authorize/uploadcsv', 'enrol');
/// Handle CSV file
if (($form = data_submitted()) && confirm_sesskey()) {
diff --git a/enrol/imsenterprise/config.html b/enrol/imsenterprise/config.html
index c0fc8461081..40275ba1def 100644
--- a/enrol/imsenterprise/config.html
+++ b/enrol/imsenterprise/config.html
@@ -38,7 +38,7 @@
enrol_createnewusers) echo "checked=\"checked\"" ?> />
- help_icon(moodle_help_icon::make('createnewusers', 'More detail about this option', 'enrol/imsenterprise')); ?>
+ help_icon('createnewusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
@@ -48,7 +48,7 @@
enrol_imsdeleteusers) echo "checked=\"checked\"" ?> />
- help_icon(moodle_help_icon::make('deleteusers', 'More detail about this option', 'enrol/imsenterprise')); ?>
+ help_icon('deleteusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
@@ -78,7 +78,7 @@
enrol_imssourcedidfallback) echo "checked=\"checked\"" ?> />
- help_icon(moodle_help_icon::make('sourceddidfallback', 'More detail about this option', 'enrol/imsenterprise')); ?>
+ help_icon('sourceddidfallback', 'More detail about this option', 'enrol/imsenterprise'); ?>