mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
better code formatting
This commit is contained in:
parent
b6d15ddef9
commit
ebff6e2c5e
2 changed files with 17 additions and 11 deletions
|
@ -219,10 +219,13 @@ class mod_quiz_mod_form extends moodleform_mod {
|
|||
$this->_feedbacks = array();
|
||||
}
|
||||
$numfeedbacks = max(count($this->_feedbacks) * 1.5, 5);
|
||||
|
||||
$repeateloptions = array();
|
||||
$repeateloptions ['feedbacktext'] = array('type'=>PARAM_TEXT);
|
||||
$repeateloptions ['feedbackboundaries'] = array('type'=>PARAM_TEXT);
|
||||
|
||||
$nextel=$this->repeat_elements($repeatarray, $numfeedbacks-1,
|
||||
array('feedbacktext'=> array('type'=>PARAM_TEXT),
|
||||
'feedbackboundaries' => array('type'=>PARAM_TEXT)),
|
||||
'boundary_repeats', 'boundary_add_fields', 3);
|
||||
$repeateloptions, 'boundary_repeats', 'boundary_add_fields', 3);
|
||||
|
||||
//put some extra elements in before the button
|
||||
$insertEl = &MoodleQuickForm::createElement('text', "feedbacktext[$nextel]", get_string('feedback', 'quiz'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue