Skip to content

Commit

Permalink
Merge branch 'wip-91298-m402' into MOODLE_402_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
weilai-irl committed May 17, 2023
2 parents d2c49e7 + cfd0356 commit 828cb1f
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,6 @@ public function get_description() {
"in the assignment activity with the course module id '$this->contextinstanceid'.";
}

/**
* Legacy event data if get_legacy_eventname() is not empty.
*
* @return stdClass
*/
protected function get_legacy_eventdata() {
$eventdata = new stdClass();
$eventdata->modulename = 'assign';
$eventdata->cmid = $this->contextinstanceid;
$eventdata->itemid = $this->objectid;
$eventdata->courseid = $this->courseid;
$eventdata->userid = $this->userid;
if (count($this->legacyfiles) > 1) {
$eventdata->files = $this->legacyfiles;
}
$eventdata->file = $this->legacyfiles;
$eventdata->pathnamehashes = array_keys($this->legacyfiles);
return $eventdata;
}

/**
* Return the legacy event name.
*
* @return string
*/
public static function get_legacy_eventname() {
return 'assessable_onenote_uploaded';
}

/**
* Return localised event name.
*
Expand Down

0 comments on commit 828cb1f

Please sign in to comment.