MDL-21695 adding support for module help
This commit is contained in:
+5
-1
@@ -626,7 +626,11 @@
|
||||
require($CFG->dirroot.'/'.$CFG->admin.'/roles/tabs.php');
|
||||
}
|
||||
|
||||
echo $OUTPUT->heading_with_help($pageheading, 'mods', $module->name, 'icon');
|
||||
if (get_string_manager()->string_exists('modulename_hlp', $module->name)) {
|
||||
echo $OUTPUT->heading_with_help($pageheading, 'modulename', $module->name, 'icon');
|
||||
} else {
|
||||
echo $OUTPUT->heading_with_help($pageheading, '', '', 'icon');
|
||||
}
|
||||
|
||||
$mform->display();
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ $string['legacyfiles'] = 'Migration of old course file';
|
||||
$string['legacyfilesactive'] = 'Active';
|
||||
$string['legacyfilesdone'] = 'Finished';
|
||||
$string['modulename'] = 'Page';
|
||||
$string['modulename_hlp'] = 'Page module allows teachers to edit a page directly in a course.';
|
||||
$string['modulenameplural'] = 'Pages';
|
||||
$string['optionsheader'] = 'Options';
|
||||
$string['pageadministration'] = 'Page administration';
|
||||
|
||||
Reference in New Issue
Block a user