|
@ -55,6 +55,7 @@ if ($mform->is_cancelled()) { |
|
|
$instance->customtext1 = $data->customtext1; |
|
|
$instance->customtext1 = $data->customtext1; |
|
|
$instance->customint1 = $data->customint1; |
|
|
$instance->customint1 = $data->customint1; |
|
|
$instance->customint2 = $data->customint2; |
|
|
$instance->customint2 = $data->customint2; |
|
|
|
|
|
$instance->customint3 = $data->customint3; |
|
|
$instance->roleid = $data->roleid; |
|
|
$instance->roleid = $data->roleid; |
|
|
$instance->timemodified = time(); |
|
|
$instance->timemodified = time(); |
|
|
$DB->update_record('enrol', $instance); |
|
|
$DB->update_record('enrol', $instance); |
|
@ -64,6 +65,7 @@ if ($mform->is_cancelled()) { |
|
|
'status' =>$data->status, |
|
|
'status' =>$data->status, |
|
|
'name' =>$data->name, |
|
|
'name' =>$data->name, |
|
|
'roleid' =>$data->roleid, |
|
|
'roleid' =>$data->roleid, |
|
|
|
|
|
'customint3' =>$data->customint3, |
|
|
'customtext1' =>$data->customtext1); |
|
|
'customtext1' =>$data->customtext1); |
|
|
$plugin->add_instance($course, $fields); |
|
|
$plugin->add_instance($course, $fields); |
|
|
} |
|
|
} |
|
|