Alright!
I think I got it:
/// Send emails to those who have the capability setif ($finishattempt && !$attempt->preview && quiz_get_best_grade($quiz, $USER->id)>15)
Does the trick.
Alright!
I think I got it:
/// Send emails to those who have the capability setif ($finishattempt && !$attempt->preview && quiz_get_best_grade($quiz, $USER->id)>15)
Does the trick.