mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-24860_messaging_providers' of git://github.com/andyjdavis/moodle
Conflicts: mod/lesson/version.php
This commit is contained in:
commit
1310964bb3
10 changed files with 51 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* Defines message providers (types of messages being sent)
|
||||
*
|
||||
* @package mod-assignment
|
||||
* @package mod-feedback
|
||||
* @copyright 2010 onwards Aparup Banerjee http://moodle.com
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
|
|
@ -920,6 +920,7 @@ function forum_cron() {
|
|||
|
||||
$attachment = $attachname='';
|
||||
$usetrueaddress = true;
|
||||
//directly email forum digests rather than sending them via messaging
|
||||
$mailresult = email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml, $attachment, $attachname, $usetrueaddress, $CFG->forum_replytouser);
|
||||
|
||||
if (!$mailresult) {
|
||||
|
|
35
mod/lesson/db/messages.php
Normal file
35
mod/lesson/db/messages.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?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/>.
|
||||
|
||||
/**
|
||||
* Defines message providers (types of messages being sent)
|
||||
*
|
||||
* @package mod-lesson
|
||||
* @copyright 2010 Andrew Davis
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$messageproviders = array (
|
||||
|
||||
// essay graded notification
|
||||
'graded_essay' => array (
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
|
@ -242,6 +242,7 @@ $string['mediafile_help'] = 'To include a pop-up window at the beginning of a le
|
|||
$string['mediafilepopup'] = 'Click here to view';
|
||||
$string['mediaheight'] = 'Popup window height:';
|
||||
$string['mediawidth'] = 'Popup window width:';
|
||||
$string['messageprovider:graded_essay'] = 'Essay graded notification';
|
||||
$string['minimumnumberofquestions'] = 'Minimum number of questions';
|
||||
$string['minimumnumberofquestions_help'] = 'This setting specifies the minimum number of questions that will be used to calculate a grade for the activity. If the lesson contains one or more content pages, the minimum number of questions should be set to zero.
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2010121400; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->version = 2010122200; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2010080300; // Requires this Moodle version
|
||||
$module->cron = 0; // Period for cron to check this module (secs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue