mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-16267 now shows default email to send message
This commit is contained in:
parent
77e9808350
commit
366e4ec4cb
@ -82,10 +82,14 @@ class message_output_email extends message_output {
|
||||
* Creates necessary fields in the messaging config form.
|
||||
* @param object $mform preferences form class
|
||||
*/
|
||||
function config_form($preferences){
|
||||
function config_form($preferences){
|
||||
global $USER;
|
||||
echo '<fieldset id="messageprocessor_email" class="clearfix">';
|
||||
echo '<legend class="ftoggler">'.get_string('email', 'messageprocessor_email').'</legend>';
|
||||
echo get_string('email').': <input name="email_email" value="'.$preferences->email_email.'" />';
|
||||
if (!isset($preferences->email_email) || $preferences->email_email==''){
|
||||
echo ' default: '.$USER->email;
|
||||
}
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user