MDL-40909 core_enrol: removed 'enrol' add_to_log calls

Before each of these calls a call to enrol_user() is made, which
triggers the event 'user_enrolment_created'. Nothing more is needed.
This commit is contained in:
Mark Nelson 2014-01-13 16:31:55 -08:00
parent 6324517209
commit f1f4f4fd7b
4 changed files with 12 additions and 2 deletions

View file

@ -97,6 +97,15 @@ class user_enrolment_created extends base {
return $legacyeventdata;
}
/**
* Return legacy data for add_to_log().
*
* @return array
*/
protected function get_legacy_logdata() {
return array($this->courseid, 'course', 'enrol', '../enrol/users.php?id=' . $this->courseid, $this->courseid);
}
/**
* Custom validation.
*