From 80de705fcb6e1f285efcf16ec2db446bf22d8c52 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Fri, 30 Apr 2010 12:05:29 +0000 Subject: [PATCH] MDL-21695 Choice module now uses new help strings AMOS BEGIN HLP choice/limit.html,[limitanswers_help,mod_choice] HLP choice/options.html,[choiceoptions_help,mod_choice] HLP choice/timerestrict.html,[timerestrict_help,mod_choice] AMOS END --- lang/en/help/choice/limit.html | 11 ----------- lang/en/help/choice/mods.html | 7 ------- lang/en/help/choice/options.html | 6 ------ lang/en/help/choice/timerestrict.html | 8 -------- mod/choice/lang/en/choice.php | 1 + mod/choice/mod_form.php | 6 +++--- 6 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 lang/en/help/choice/limit.html delete mode 100644 lang/en/help/choice/mods.html delete mode 100644 lang/en/help/choice/options.html delete mode 100644 lang/en/help/choice/timerestrict.html diff --git a/lang/en/help/choice/limit.html b/lang/en/help/choice/limit.html deleted file mode 100644 index ff519ce2565..00000000000 --- a/lang/en/help/choice/limit.html +++ /dev/null @@ -1,11 +0,0 @@ -

Choice Limit

- -

This option allows you to limit the number of participants - that can select each particular option.

- -

Once Limits have been enabled, each option can set a limit. - When the limit is reached then no-one else can select that option. - A limit of zero (0) means that no-one can select that choice.

- -

If Limits are disabled then any number of participants can - select any of the options.

diff --git a/lang/en/help/choice/mods.html b/lang/en/help/choice/mods.html deleted file mode 100644 index d991e31c1e4..00000000000 --- a/lang/en/help/choice/mods.html +++ /dev/null @@ -1,7 +0,0 @@ -

 Choices

-
-A choice activity is very simple - the teacher asks a question and specifies a -choice of multiple responses. It can be useful as a quick poll to -stimulate thinking about a topic; to allow the class to vote on -a direction for the course; or to gather research consent. -
diff --git a/lang/en/help/choice/options.html b/lang/en/help/choice/options.html deleted file mode 100644 index 5092e141c89..00000000000 --- a/lang/en/help/choice/options.html +++ /dev/null @@ -1,6 +0,0 @@ -

Choice options

- -

Here is where you specify the options that participants - have to choose from.

- -

You can fill in any number of these: it's OK to leave some blank.

diff --git a/lang/en/help/choice/timerestrict.html b/lang/en/help/choice/timerestrict.html deleted file mode 100644 index 84bcdce88dc..00000000000 --- a/lang/en/help/choice/timerestrict.html +++ /dev/null @@ -1,8 +0,0 @@ -

Restrict times

- -

This setting allows you to define a time window within which - participants are allowed to make a choice.

- -

To set an open-ended close date just set the time very far in the future.

- -

If you don't need this at all then uncheck the box.

diff --git a/mod/choice/lang/en/choice.php b/mod/choice/lang/en/choice.php index 37eb4283831..4de3854ea69 100644 --- a/mod/choice/lang/en/choice.php +++ b/mod/choice/lang/en/choice.php @@ -81,5 +81,6 @@ $string['spaceleft'] = 'space available'; $string['spacesleft'] = 'spaces available'; $string['taken'] = 'Taken'; $string['timerestrict'] = 'Restrict answering to this time period'; +$string['timerestrict_help'] = 'This setting allows you to define a time window within which participants are allowed to make a choice. To set an open-ended close date just set the time very far in the future. If you don\'t need this at all then uncheck the box.'; $string['viewallresponses'] = 'View {$a} responses'; $string['yourselection'] = 'Your selection'; diff --git a/mod/choice/mod_form.php b/mod/choice/mod_form.php index 0195f727bdd..aab7b3d3a2d 100644 --- a/mod/choice/mod_form.php +++ b/mod/choice/mod_form.php @@ -33,7 +33,7 @@ class mod_choice_mod_form extends moodleform_mod { $menuoptions[1] = get_string('enable'); $mform->addElement('header', 'timerestricthdr', get_string('limit', 'choice')); $mform->addElement('select', 'limitanswers', get_string('limitanswers', 'choice'), $menuoptions); - $mform->addHelpButton('limitanswers', 'choice'); + $mform->addHelpButton('limitanswers', 'limitanswers', 'choice'); if ($this->_instance){ $repeatno = $DB->count_records('choice_options', array('choiceid'=>$this->_instance)); @@ -47,7 +47,7 @@ class mod_choice_mod_form extends moodleform_mod { $repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0); $mform->setType('limit', PARAM_INT); - $repeateloptions['option']['helpbutton'] = array('options', get_string('modulenameplural', 'choice'), 'choice'); + $repeateloptions['option']['helpbutton'] = array('choiceoptions', get_string('modulenameplural', 'choice'), 'choice'); $mform->setType('option', PARAM_CLEAN); $mform->setType('optionid', PARAM_INT); @@ -61,7 +61,7 @@ class mod_choice_mod_form extends moodleform_mod { //------------------------------------------------------------------------------- $mform->addElement('header', 'timerestricthdr', get_string('timerestrict', 'choice')); $mform->addElement('checkbox', 'timerestrict', get_string('timerestrict', 'choice')); - $mform->setHelpButton('timerestrict', array("timerestrict", get_string("timerestrict","choice"), "choice")); + $mform->addHelpButton('timerestrict', 'timerestrict', 'choice'); $mform->addElement('date_time_selector', 'timeopen', get_string("choiceopen", "choice"));