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
This commit is contained in:
David Mudrak 2010-04-30 12:05:29 +00:00
parent 194dd279cc
commit 80de705fcb
6 changed files with 4 additions and 35 deletions

View file

@ -1,11 +0,0 @@
<h1>Choice Limit</h1>
<p>This option allows you to limit the number of participants
that can select each particular option.</p>
<p>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.</p>
<p>If Limits are disabled then any number of participants can
select any of the options.</p>

View file

@ -1,7 +0,0 @@
<p><img alt="" src="<?php echo $CFG->wwwroot?>/mod/choice/icon.gif" />&nbsp;<b>Choices</b></p>
<div class="indent">
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.
</div>

View file

@ -1,6 +0,0 @@
<h1>Choice options</h1>
<p>Here is where you specify the options that participants
have to choose from.</p>
<p>You can fill in any number of these: it's OK to leave some blank.</p>

View file

@ -1,8 +0,0 @@
<h1>Restrict times</h1>
<p>This setting allows you to define a time window within which
participants are allowed to make a choice.</p>
<p>To set an open-ended close date just set the time very far in the future.</p>
<p>If you don't need this at all then uncheck the box.</p>

View file

@ -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';

View file

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