Skip to content

Commit

Permalink
MDL-16267 now shows default email to send message
Browse files Browse the repository at this point in the history
  • Loading branch information
lfrodrigues committed Sep 25, 2008
1 parent 77e9808 commit 366e4ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion message/output/email/message_output_email.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ function send_message($message) {
* 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>';
}

Expand Down

0 comments on commit 366e4ec

Please sign in to comment.