Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-9206 Readded unlimited attempts option (sorry I miss it)

  • Loading branch information...
commit 2dc95960f4ade86be8baeeeb8a89b91f6ccbd969 1 parent 146b674
bobopinna authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 mod/scorm/mod_form.php
View
9 mod/scorm/mod_form.php
@@ -24,10 +24,10 @@ function definition() {
$mform->setHelpButton('summary', array('writing', 'questions', 'richtext'), false, 'editorhelpbutton');
// Reference
- $mform->addElement('choosecoursefile', 'reference', get_string('coursepacket','scorm'));
+ $mform->addElement('choosecoursefile', 'reference', get_string('package','scorm'));
$mform->setType('reference', PARAM_RAW); // We need to find a better PARAM
$mform->addRule('reference', get_string('required'), 'required', null, 'client');
- $mform->setHelpButton('reference',array('package', get_string('coursepacket', 'scorm')), 'scorm');
+ $mform->setHelpButton('reference',array('package', get_string('package', 'scorm')), 'scorm');
//-------------------------------------------------------------------------------
// Other Settings
@@ -53,6 +53,7 @@ function definition() {
$mform->addElement('static', 'attempts', get_string('attempts','scorm'));
// Max Attempts
+ $attempts = array(0 => get_string('nolimit','scorm'));
for ($i=1; $i<=$CFG->scorm_maxattempts; $i++) {
if ($i == 1) {
$attempts[$i] = $i . ' ' . get_string('attempt','scorm');
@@ -72,7 +73,7 @@ function definition() {
$mform->setAdvanced('whatgrade');
// Activation period
- $mform->addElement('static', '', '' ,'<hr />');
+ /*$mform->addElement('static', '', '' ,'<hr />');
$mform->addElement('static', 'activation', get_string('activation','scorm'));
$datestartgrp = array();
$datestartgrp[] = &$mform->createElement('date_time_selector', 'startdate');
@@ -88,7 +89,7 @@ function definition() {
$mform->addGroup($dateendgrp, 'dateendgrp', get_string('to'), ' ', false);
$mform->setDefault('enddate', 0);
$mform->setDefault('enddisabled', 1);
- $mform->disabledIf('dateendgrp', 'enddisabled', 'checked');
+ $mform->disabledIf('dateendgrp', 'enddisabled', 'checked'); */
// Stage Size
$mform->addElement('static', '', '' ,'<hr />');
Please sign in to comment.
Something went wrong with that request. Please try again.