mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-33697' of git://github.com/netspotau/moodle-mod_assign
This commit is contained in:
commit
728aee9767
4 changed files with 6 additions and 10 deletions
|
@ -25,10 +25,7 @@
|
|||
$messageproviders = array (
|
||||
|
||||
// Ordinary assignment submissions
|
||||
'assign_student_notification' => array(
|
||||
),
|
||||
'assign_grader_notification' => array(
|
||||
'capability' => 'mod/assign:grade'
|
||||
'assign_notification' => array(
|
||||
)
|
||||
|
||||
);
|
||||
|
|
|
@ -147,8 +147,7 @@ $string['locksubmissionforstudent'] = 'Prevent any more submissions for student:
|
|||
$string['locksubmissions'] = 'Lock submissions';
|
||||
$string['manageassignfeedbackplugins'] = 'Manage assignment feedback plugins';
|
||||
$string['manageassignsubmissionplugins'] = 'Manage assignment submission plugins';
|
||||
$string['messageprovider:assign_student_notification'] = 'Assignment student notifications';
|
||||
$string['messageprovider:assign_grader_notification'] = 'Assignment grader notifications';
|
||||
$string['messageprovider:assign_notification'] = 'Assignment notifications';
|
||||
$string['modulename'] = 'Assignment';
|
||||
$string['modulename_help'] = 'The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback.
|
||||
|
||||
|
|
|
@ -1181,7 +1181,7 @@ class assign {
|
|||
|
||||
// need to send this to the student
|
||||
$messagetype = 'feedbackavailable';
|
||||
$eventtype = 'assign_student_notification';
|
||||
$eventtype = 'assign_notification';
|
||||
$updatetime = $submission->lastmodified;
|
||||
$modulename = get_string('modulename', 'assign');
|
||||
self::send_assignment_notification($grader, $user, $messagetype, $eventtype, $updatetime, $mod, $contextmodule, $course, $modulename, $submission->name);
|
||||
|
@ -2438,7 +2438,7 @@ class assign {
|
|||
return;
|
||||
}
|
||||
$user = $DB->get_record('user', array('id'=>$submission->userid), '*', MUST_EXIST);
|
||||
$this->send_notification($user, $user, 'submissionreceipt', 'assign_student_notification', $submission->timemodified);
|
||||
$this->send_notification($user, $user, 'submissionreceipt', 'assign_notification', $submission->timemodified);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2460,7 +2460,7 @@ class assign {
|
|||
$user = $DB->get_record('user', array('id'=>$submission->userid), '*', MUST_EXIST);
|
||||
if ($teachers = $this->get_graders($user->id)) {
|
||||
foreach ($teachers as $teacher) {
|
||||
$this->send_notification($user, $teacher, 'gradersubmissionupdated', 'assign_grader_notification', $submission->timemodified);
|
||||
$this->send_notification($user, $teacher, 'gradersubmissionupdated', 'assign_notification', $submission->timemodified);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->component = 'mod_assign'; // Full name of the plugin (used for diagnostics)
|
||||
$module->version = 2012061100; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->version = 2012061400; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012050300; // Requires this Moodle version
|
||||
$module->cron = 60;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue