MDL-50427 mod_scorm: Rename scorm_view_display to scorm_print_launch

In order to avoid confusion with the new scorm_view fuction
This commit is contained in:
Juan Leyva 2015-07-14 11:11:14 +02:00
parent e9bf301145
commit 0b9fc18ba1
3 changed files with 14 additions and 2 deletions

View File

@ -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) {

View File

@ -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");

View File

@ -1,6 +1,10 @@
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.