Commit | Line | Data |
---|---|---|
d8aa5ec7 AD |
1 | This files describes API changes in /message/ messaging system, |
2 | information provided here is intended especially for developers. | |
3 | ||
3bcf6b3c RT |
4 | === 2.6 === |
5 | * Message processor extending message_output, should return true in can_send_to_any_users() | |
6 | if it supports message sending to internal (noreply/support) users. | |
56b9a02e YB |
7 | * Message API has been changed to allow attachments. Message processors that can support |
8 | attachments can now use additional parameter as a part of $eventdata. To send attachments, | |
9 | $eventdata should contain properties called "attachment" (must be stored_file) and | |
10 | "attachname" (string). Currently, email message processor is the only one to support | |
11 | attachments. | |
3bcf6b3c | 12 | |
d8aa5ec7 AD |
13 | === 2.2 === |
14 | ||
15 | required changes: | |
16 | * lib/messagelib.php message_send($eventdata) | |
17 | $eventdata->userto should contain a property called "emailstop", $eventdata->userto->emailstop | |
18 | If it is absent it will be retrieved from the user table causing an additional database query |