Assignment

 
 
Picture of Leonard Houx
Modify grade notifications subject line
 

I am struggling to modify the subject line in our grade notifications in Moodle 2.2. At the moment, these emails' subject line is the course and assignment name. This is not very descriptive and I fear that a lot of students are ignoring these messages.

The body of the email is in the language files, but I can't find where the subject line is designated. If I need to go into a PHP file, does anyone know which one?

 
Average of ratings: -
Picture of Leonard Houx
Re: Modify grade notifications subject line
 

This is how the grade notification appears in my GMail account. As you can see, the subject line is just the file path separated by colons. 

 
Average of ratings: -
Picture of Leonard Houx
Re: Modify grade notifications subject line
 

Just answered my own question: it's in mod/assigment/lib.php

Line 2902: $postsubject = "$courseshortname: $strassignments: ".format_string($submission->name,true);

Line 2924: $eventdata->subject = $postsubject;

 

 
Average of ratings: -