+++ /dev/null
-<?php
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Message producers.
- *
- * @package tool_lp
- * @copyright 2015 Frédéric Massart - FMCorz.net
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-defined('MOODLE_INTERNAL') || die();
-
-$messageproviders = array (
- 'plan_comment' => array(),
- 'user_competency_comment' => array(),
-);
$string['loading'] = 'Loading...';
$string['locatecompetency'] = 'Locate competency';
$string['managecompetenciesandframeworks'] = 'Manage competencies and frameworks';
-$string['messageprovider:user_competency_comment'] = 'Comment posted on a competency.';
-$string['messageprovider:plan_comment'] = 'Comment posted on a learning plan.';
$string['modcompetencies'] = 'Course competencies';
$string['modcompetencies_help'] = 'Course competencies linked to this activity.';
$string['move'] = 'Move';
}
$message = new \core\message\message();
- $message->component = 'tool_lp';
- $message->name = 'user_competency_comment';
+ $message->component = 'moodle';
+ $message->name = 'competencyusercompcomment';
$message->notification = 1;
$message->userfrom = core_user::get_noreply_user();
$message->subject = get_string('usercommentedonacompetencysubject', 'tool_lp', $fullname);
}
$message = new \core\message\message();
- $message->component = 'tool_lp';
- $message->name = 'plan_comment';
+ $message->component = 'moodle';
+ $message->name = 'competencyplancomment';
$message->notification = 1;
$message->userfrom = core_user::get_noreply_user();
$message->subject = get_string('usercommentedonaplansubject', 'tool_lp', $fullname);
$string['messageprovider:backup'] = 'Backup notifications';
$string['messageprovider:badgecreatornotice'] = 'Badge creator notifications';
$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:courserequestapproved'] = 'Course creation request approval notification';
$string['messageprovider:courserequested'] = 'Course creation request notification';
$string['messageprovider:courserequestrejected'] = 'Course creation request rejection notification';
'defaults' => array(
'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDOFF,
)
- )
+ ),
+
+ // A comment was left on a plan.
+ 'competencyplancomment' => array(),
+
+ // A comment was left on a user competency.
+ 'competencyusercompcomment' => array(),
);