add_node($devcoursenode); } function gradeimporter_add_instance ($data, $mform) { global $DB; $cmid = $data->coursemodule; $gradeimporterid = $DB->insert_record("gradeimporter", $data); $data->id = $gradeimporterid; $context = context_module::instance($cmid); $gradeimporter = $DB->get_record('gradeimporter', array('id' => $gradeimporterid), '*', MUST_EXIST); // iassign_grade_item($gradeimporter); // log event ----------------------------------------------------- iassign_log::add_log('add_gradeimporter', 'name: ' . $data->name, $cmid); // log event ----------------------------------------------------- return $iassign->id; }