-
Task
-
Resolution: Inactive
-
Minor
-
None
-
2.1.2
-
None
-
FreeBSD/Ubuntu tested in regular LAMP environment. Using php 5.3 with FastCGI/FPM. MySQL 5.5
-
MySQL
-
MOODLE_21_STABLE
Many schools have voiced a need for duplicate emails to be sent to alternative addresses when there is teacher-student private communication. This is because though a student can always share a password with their parent; the student can also change that password or delete the message.
In today's world schools are taking a close look at private messaging and how it fits into their overall policy regarding private communication between teachers and students. This alternative messaging format allows for schools to turn on the 'guardian contact' for certain functionality in Moodle; if this means private messages or even forum use.
The code is basically a copy of that used for email except for one big change: it does not use the 'send_to_email' functionality of the lib/moodlelib.php. This is due to send_to_email's reliance on the $user variable. In this case I am not using much of the $user variable aside from grabbing the guardiancontact.
Please let me know if there are any suggestions to the code. As this is my first extension (and hopefully one of many to come) I want to learn as much as I can.
This is a hard case in showing the ability of the plugin due to its requirement for authentication.