Hi,
I'm new to theming and was wondering if you could incorporate changes to core moodle functionality into the theme (like an override). I know you can override mustache templates and renderers, but what if the core functionality you want to edit isn't in either? would it still be possible to add to the theme? An example:
mod/assign/locallib.php
protected function notify_student_submission_receipt(stdClass $submission) {
global $DB, $USER;
$adminconfig = $this->get_admin_config();
if (empty($adminconfig->submissionreceipts)) {
// No need to do anything.
return;
}
if ($submission->userid) {
$user = $DB->get_record('user', array('id'=>$submission->userid), '*', MUST_EXIST);
} else {
$user = $USER;
}
if ($submission->userid == $USER->id) {
$this->send_notification(core_user::get_noreply_user(),
$user,
'submissionreceipt',
'assign_notification',
$submission->timemodified);
} else {
// $this->send_notification($USER,
// $user,
// 'submissionreceiptother',
// 'assign_notification',
// $submission->timemodified);
}
}
Thanks in advance!