MDL-70083 message: New message provider "coursecontentupdated"

This commit is contained in:
Juan Leyva 2021-07-28 11:58:08 +02:00
parent 8af7bec81e
commit 714b482cba
3 changed files with 11 additions and 1 deletions

View File

@ -1255,6 +1255,7 @@ $string['messageprovider:badgerecipientnotice'] = 'Badge recipient notifications
$string['messageprovider:competencyplancomment'] = 'Comment posted on a learning plan';
$string['messageprovider:competencyusercompcomment'] = 'Comment posted on a competency';
$string['messageprovider:coursecompleted'] = 'Course completed';
$string['messageprovider:coursecontentupdated'] = 'Course content changes';
$string['messageprovider:courserequestapproved'] = 'Course creation request approval notification';
$string['messageprovider:courserequested'] = 'Course creation request notification';
$string['messageprovider:courserequestrejected'] = 'Course creation request rejection notification';

View File

@ -89,6 +89,15 @@ $messageproviders = array (
// Course completed. Requires course completion configured at course level. It does not work with just activity progress.
'coursecompleted' => [],
// Course content updated. New content (activities or resources) has been created or existing content updated.
'coursecontentupdated' => array (
'defaults' => array(
'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDOFF,
'airnotifier' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
),
),
// Badge award notification to a badge recipient.
'badgerecipientnotice' => array (
'defaults' => array(

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2021110200.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2021110200.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.0dev+ (Build: 20211102)'; // Human-friendly version name