|
@@ -215,8 +215,8 @@ discard block |
|
|
block discarded – undo |
|
215
|
215
|
$this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
|
216
|
216
|
$field['description_key'], 0, ['maxlength' => 4, 'size' => 6], |
|
217
|
217
|
['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), |
|
218
|
|
- 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
219
|
|
- ); |
|
|
218
|
+ 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] |
|
|
219
|
+ ); |
|
220
|
220
|
} else { |
|
221
|
221
|
$this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
|
222
|
222
|
$field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); |
|
@@ -255,7 +255,7 @@ discard block |
|
|
block discarded – undo |
|
255
|
255
|
private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { |
|
256
|
256
|
$recordingsettings = false; |
|
257
|
257
|
$field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, |
|
258
|
|
- 'description_key' => null]; |
|
|
258
|
+ 'description_key' => null]; |
|
259
|
259
|
if ($cfg['recordings_html_editable']) { |
|
260
|
260
|
$field['type'] = 'checkbox'; |
|
261
|
261
|
$field['description_key'] = 'mod_form_field_recordings_html'; |
|
@@ -264,7 +264,7 @@ discard block |
|
|
block discarded – undo |
|
264
|
264
|
$this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
|
265
|
265
|
$field['description_key'], $cfg['recordings_html_default']); |
|
266
|
266
|
$field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, |
|
267
|
|
- 'description_key' => null]; |
|
|
267
|
+ 'description_key' => null]; |
|
268
|
268
|
if ($cfg['recordings_deleted_editable']) { |
|
269
|
269
|
$field['type'] = 'checkbox'; |
|
270
|
270
|
$field['description_key'] = 'mod_form_field_recordings_deleted'; |
|
@@ -273,7 +273,7 @@ discard block |
|
|
block discarded – undo |
|
273
|
273
|
$this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
|
274
|
274
|
$field['description_key'], $cfg['recordings_deleted_default']); |
|
275
|
275
|
$field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, |
|
276
|
|
- 'description_key' => null]; |
|
|
276
|
+ 'description_key' => null]; |
|
277
|
277
|
if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { |
|
278
|
278
|
$field['type'] = 'checkbox'; |
|
279
|
279
|
$field['description_key'] = 'mod_form_field_recordings_imported'; |
|
@@ -282,7 +282,7 @@ discard block |
|
|
block discarded – undo |
|
282
|
282
|
$this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |
|
283
|
283
|
$field['description_key'], $cfg['recordings_imported_default']); |
|
284
|
284
|
$field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, |
|
285
|
|
- 'description_key' => null]; |
|
|
285
|
+ 'description_key' => null]; |
|
286
|
286
|
if ($cfg['recordings_preview_editable']) { |
|
287
|
287
|
$field['type'] = 'checkbox'; |
|
288
|
288
|
$field['description_key'] = 'mod_form_field_recordings_preview'; |
|
@@ -359,7 +359,7 @@ discard block |
|
|
block discarded – undo |
|
359
|
359
|
$htmlselectiontype = html_writer::select($participantselection['type_options'], |
|
360
|
360
|
'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), |
|
361
|
361
|
array('id' => 'bigbluebuttonbn_participant_selection_type', |
|
362
|
|
- 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
|
362
|
+ 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); |
|
363
|
363
|
$htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', |
|
364
|
364
|
$participantselection['selected'], array(), |
|
365
|
365
|
array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); |
|
@@ -367,7 +367,7 @@ discard block |
|
|
block discarded – undo |
|
367
|
367
|
'type' => 'button', 'class' => 'btn btn-secondary', |
|
368
|
368
|
'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), |
|
369
|
369
|
'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' |
|
370
|
|
- )); |
|
|
370
|
+ )); |
|
371
|
371
|
$htmladdparticipant = html_writer::tag('div', |
|
372
|
372
|
$htmlselectiontype . ' ' . $htmlselectionoptions . ' ' . $htmlselectioninput, null); |
|
373
|
373
|
$mform->addElement('html', "\n\n"); |
|
@@ -411,7 +411,7 @@ discard block |
|
|
block discarded – undo |
|
411
|
411
|
$field['description_key'] = 'mod_form_field_block_clienttype'; |
|
412
|
412
|
|
|
413
|
413
|
$choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), |
|
414
|
|
- BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
|
414
|
+ BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); |
|
415
|
415
|
|
|
416
|
416
|
$mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); |
|
417
|
417
|
$this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], |