Commit 0b9fc18b authored by Juan Leyva's avatar Juan Leyva
Browse files

MDL-50427 mod_scorm: Rename scorm_view_display to scorm_print_launch

In order to avoid confusion with the new scorm_view fuction
parent e9bf3011
......@@ -840,7 +840,15 @@ function scorm_get_all_attempts($scormid, $userid) {
return $attemptids;
}
function scorm_view_display ($user, $scorm, $action, $cm) {
/**
* Displays the entry form and toc if required.
*
* @param stdClass $user user object
* @param stdClass $scorm scorm object
* @param string $action base URL for the organizations select box
* @param stdClass $cm course module object
*/
function scorm_print_launch ($user, $scorm, $action, $cm) {
global $CFG, $DB, $PAGE, $OUTPUT, $COURSE;
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
......
......@@ -173,7 +173,7 @@ if (!empty($scorm->timeclose) && $timenow > $scorm->timeclose) {
$scormopen = false;
}
if ($scormopen && empty($launch)) {
scorm_view_display($USER, $scorm, 'view.php?id='.$cm->id, $cm);
scorm_print_launch($USER, $scorm, 'view.php?id='.$cm->id, $cm);
}
if (!empty($forcejs)) {
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
......
This files describes API changes in /mod/* - activity modules,
information provided here is intended especially for developers.
=== 3.0 ===
* Function scorm_view_display was renamed to scorm_print_launch to avoid confussion with new function scorm_view.
=== 2.9 ===
* Added Grade to pass field to mod_form for activities that support grading.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment