MDL-21695 adding support for module help

This commit is contained in:
Petr Skoda
2010-04-13 21:59:15 +00:00
parent 503d243a3c
commit 3fc066917d
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -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();
+1
View File
@@ -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';