in forms.php [64:86]
protected function definition() {
$mform = $this->_form;
$mform->addElement('hidden', 'course');
$mform->setType('course', PARAM_INT);
$resetoptions = [];
$resetoptions[] = $mform->createElement('radio', 'reset_setting', '',
get_string('teams_reset_option_do_nothing', 'block_microsoft'), TEAMS_COURSE_RESET_SETTING_DO_NOTHING);
$createteams = get_config('local_o365', 'createteams');
if ($createteams == 'oncustom') {
$resetoptions[] = $mform->createElement('radio', 'reset_setting', '',
get_string('teams_reset_option_disconnect_only', 'block_microsoft'),
TEAMS_COURSE_RESET_SETTING_DISCONNECT_ONLY);
}
$resetoptions[] = $mform->createElement('radio', 'reset_setting', '',
get_string('teams_reset_option_disconnect', 'block_microsoft'), TEAMS_COURSE_RESET_SETTING_DISCONNECT_AND_CREATE_NEW);
$mform->addGroup($resetoptions, 'resetsettinggroup', get_string('course_reset_team_option', 'block_microsoft'),
'<br/>', false);
$mform->setDefault('reset_setting', TEAMS_COURSE_RESET_SETTING_DO_NOTHING);
$this->add_action_buttons();
}