Browse Source

removed comment, formatted fields array

develop_fields
Johannes Burk 11 years ago
parent
commit
02c47e28ee
  1. 8
      edit.php

8
edit.php

@ -58,10 +58,10 @@ if ($mform->is_cancelled()) {
$DB->update_record('enrol', $instance);
} else {
// $fields = array('status'=>$data->status, 'name'=>$data->name, 'password'=>$data->password, 'customint1'=>$data->customint1, 'customint2'=>$data->customint2,
// 'customint3'=>$data->customint3, 'customint4'=>$data->customint4, 'customtext1'=>$data->customtext1,
// 'roleid'=>$data->roleid, 'enrolperiod'=>$data->enrolperiod, 'enrolstartdate'=>$data->enrolstartdate, 'enrolenddate'=>$data->enrolenddate);
$fields = array('status'=>$data->status, 'name'=>$data->name, 'customtext1'=>$data->customtext1);
$fields = array(
'status'=>$data->status,
'name'=>$data->name,
'customtext1'=>$data->customtext1);
$plugin->add_instance($course, $fields);
}

Loading…
Cancel
Save