MDL-30072 - Notes, Webservices - adding Webservices for notes

This commit is contained in:
Jason Fowler
2013-02-22 13:58:11 +08:00
parent f29e62cb6c
commit 34348b2b43
9 changed files with 480 additions and 45 deletions
+1 -3
View File
@@ -63,9 +63,7 @@ if (!empty($users) && confirm_sesskey()) {
$note->content = $contents[$k];
$note->publishstate = $states[$k];
$note->userid = $v;
if (note_save($note)) {
add_to_log($note->courseid, 'notes', 'add', 'index.php?course='.$note->courseid.'&user='.$note->userid . '#note-' . $note->id , 'add note');
}
note_save($note);
}
redirect("$CFG->wwwroot/user/index.php?id=$id");
}