From e2420ea13979a46506f9e6ada63facf1dd240e72 Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Mon, 27 Apr 2026 11:26:57 +0100 Subject: [PATCH] Remove deprecated format_for_log() format_for_log() was removed in Moodle 4.3 (MDL-78333) having been deprecated since Moodle 2.7. If possible this change should be applied to the devdocs branches for Moodle 4.3 onwards. --- docs/apis/plugintypes/assign/submission.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/apis/plugintypes/assign/submission.md b/docs/apis/plugintypes/assign/submission.md index d4e43f75e..db62a78ee 100644 --- a/docs/apis/plugintypes/assign/submission.md +++ b/docs/apis/plugintypes/assign/submission.md @@ -606,18 +606,6 @@ public function copy_submission(stdClass $sourcesubmission, stdClass $destsubmis Since Moodle 2.5 - a students submission can be copied to create a new submission attempt. Plugins should implement this function if they store data associated with the submission (most plugins). -#### format_for_log() {/* #format_for_log */} - -```php -public function format_for_log(stdClass $submission) { - // Format the information for each submission plugin add_to_log - $filecount = $this->count_files($submission->id, ASSIGNSUBMISSION_FILE_FILEAREA); - return ' the number of file(s) : ' . $filecount . " file(s).
"; -} -``` - -The format_for_log function lets a plugin produce a really short summary of a submission suitable for adding to a log message. - #### delete_instance() {/* #delete_instance */} ```php