From: poltawski Date: Sat, 22 Dec 2007 19:57:46 +0000 (+0000) Subject: MDL-12707 - moved hotpot/ lams to use new admin settings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b070f1c78b5ea7704e83dd66badb7cc630de0fee;p=moodle.git MDL-12707 - moved hotpot/ lams to use new admin settings --- diff --git a/lang/en_utf8/hotpot.php b/lang/en_utf8/hotpot.php index 6611c426ff..fb7b446fdf 100644 --- a/lang/en_utf8/hotpot.php +++ b/lang/en_utf8/hotpot.php @@ -36,6 +36,7 @@ $string['error_nofeedbackurlwebpage'] = 'Please enter a URL for the webpage'; $string['error_nofilename'] = 'Please enter a file name'; $string['error_noquizzesfound'] = 'No Hot Potatoes quizzes found'; $string['error_notfileorfolder'] = '"$a" is not file or folder'; +$string['excelencodings'] = 'Excel encodings'; $string['feedbackformmail'] = 'Feedback form'; $string['feedbackmoodleforum'] = 'Moodle forum'; $string['feedbackmoodlemessaging'] = 'Moodle messaging'; @@ -139,6 +140,7 @@ $string['resultssaved'] = 'Quiz results were saved'; $string['score'] = 'Score'; $string['showhtmlsource'] = 'Show HTML source'; $string['shownextquiz'] = 'Show next quiz'; +$string['showtimes'] = 'Show processing times'; $string['showxmlsource'] = 'Show XML source'; $string['showxmltree'] = 'Show XML tree'; $string['specifictime'] = 'Specific time'; diff --git a/lang/en_utf8/lams.php b/lang/en_utf8/lams.php index bed655fb1f..ce022d39e2 100644 --- a/lang/en_utf8/lams.php +++ b/lang/en_utf8/lams.php @@ -21,8 +21,11 @@ $string['refreshSequenceList'] = 'Refresh sequence list'; $string['selectExistingSequence'] = 'Select an existing sequence or create a new sequence.'; $string['sequence'] = 'Select Sequence'; $string['serverid'] = 'Enter the server ID received from LAMS international.'; +$string['server_id'] = 'Server ID'; $string['serverkey'] = 'Enter the server key received from LAMS international.'; +$string['server_key'] = 'Server key'; $string['serverurl'] = 'Enter the basic URL used to access the LAMS server. For example http://localhost:8080/lams'; +$string['server_url'] = 'Server URL'; $string['useSequence'] = 'Use selected sequence'; $string['visibletostudents'] = 'Show activity to students'; $string['wikistartederror'] = 'Wiki already has entries - can\'t change.'; diff --git a/mod/hotpot/config.html b/mod/hotpot/config.html deleted file mode 100644 index 096b72d3e5..0000000000 --- a/mod/hotpot/config.html +++ /dev/null @@ -1,25 +0,0 @@ -
- -
- - - - - - - - - - - - - - -
hotpot_showtimes:hotpot_showtimes, ""); - ?>
hotpot_excelencodings:
" />
-
-
diff --git a/mod/hotpot/settings.php b/mod/hotpot/settings.php new file mode 100644 index 0000000000..a84acc2906 --- /dev/null +++ b/mod/hotpot/settings.php @@ -0,0 +1,9 @@ +add(new admin_setting_configcheckbox('hotpot_showtimes', get_string('showtimes', 'hotpot'), + get_string('configshowtimes', 'hotpot'), 0) ); + +$settings->add(new admin_setting_configtext('hotpot_excelencodings', get_string('excelencodings', 'hotpot'), + get_string('configexcelencodings', 'hotpot'), '') ); + +?> diff --git a/mod/lams/config.html b/mod/lams/config.html deleted file mode 100644 index 33257c22b4..0000000000 --- a/mod/lams/config.html +++ /dev/null @@ -1,34 +0,0 @@ -
-
- - - - - - - - - - - - - - - - - - - - - - -
server_url: - -
server_id: - -
server_key: - -
- " />
-
-
diff --git a/mod/lams/settings.php b/mod/lams/settings.php new file mode 100644 index 0000000000..aae695ff9b --- /dev/null +++ b/mod/lams/settings.php @@ -0,0 +1,12 @@ +add(new admin_setting_configtext('lams_serverurl', get_string('server_url', 'lams'), + get_string('serverurl', 'lams'), '') ); + +$settings->add(new admin_setting_configtext('lams_serverid', get_string('server_id', 'lams'), + get_string('serverid', 'lams'), '') ); + +$settings->add(new admin_setting_configtext('lams_serverkey', get_string('server_key', 'lams'), + get_string('serverkey', 'lams'), '') ); + +?>