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
@@ -41,9 +41,7 @@ if (empty($CFG->enablenotes)) {
if (data_submitted() && confirm_sesskey()) {
//if data was submitted and is valid, then delete note
$returnurl = $CFG->wwwroot . '/notes/index.php?course=' . $course->id . '&user=' . $note->userid;
if (note_delete($noteid)) {
add_to_log($note->courseid, 'notes', 'delete', 'index.php?course='.$note->courseid.'&user='.$note->userid . '#note-' . $note->id , 'delete note');
} else {
if (!note_delete($noteid)) {
print_error('cannotdeletepost', 'notes', $returnurl);
}
redirect($returnurl);