mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-35836 Rewrite doctonewwindow handling to use delegation instead of individual events
This commit is contained in:
parent
7e8ae12a7a
commit
afe3566cca
4 changed files with 44 additions and 34 deletions
|
@ -1911,7 +1911,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = null) {
|
|||
if ($sm->string_exists('modulename_link', $modname)) { // Link to further info in Moodle docs
|
||||
$link = get_string('modulename_link', $modname);
|
||||
$linktext = get_string('morehelp');
|
||||
$module->help .= html_writer::tag('div', $OUTPUT->doc_link($link, $linktext), array('class' => 'helpdoclink'));
|
||||
$module->help .= html_writer::tag('div', $OUTPUT->doc_link($link, $linktext, true), array('class' => 'helpdoclink'));
|
||||
}
|
||||
}
|
||||
$module->archetype = plugin_supports('mod', $modname, FEATURE_MOD_ARCHETYPE, MOD_ARCHETYPE_OTHER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue