This patch adds an api function which allows the drupal system to send private messages to any user, which can be used for things such as
announcements, etc.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | privatemsg_system_messages_0.patch | 8.43 KB | smk-ka |
| privatemsg_system_messages.patch | 6.75 KB | adrian |
Comments
Comment #1
smk-ka commentedFixed some some bugs, streamlined the code a bit and moved it to Drupal 5.x branch. Couldn't resist to rename the API function name to
privatemsg_send_systemmsg(), since it's more similar toprivatemsg_send_privatemsg().--
Stefan Kudwien
www.unleashedmind.com
Comment #2
BenK commentedHey everyone,
I'm following Berdir's suggestion at http://drupal.org/node/555016 (comment #106) and re-activating this old thread. There's some code here that's a starting point (it looks like the code was never reviewed), but we'll have to see whether or not this code is usable in D6 or D7 versions of Private Message, or whether it's better to start from scratch.
Currently, the ability to send "system" messages is now much more important given that sending messages to roles (see http://drupal.org/node/555016) is nearing completion.
I'd also add a couple important feature requests:
1. That there is an option to specify the "name" for the system. For instance, you may want to use the site name, "Staff," or something different. Better yet, it would be great if you could specify this per message rather than just site wide.
2. That there is an option to disable user replies to messages from the system. For sites with large numbers of users, for instance, site administrators might not have the time to sift through thousands of replies.
Thoughts?
--Ben
Comment #3
ptmkenny commentedI think this can now be handled with the rules integration. For any event that the Rules module can handle, you can send a private message from a user; if you designate a user specifically for this purpose, then you can implement this functionality right now with only a bit of customization.
If this is insufficient, what specific functionality needs to be added?
Comment #4
ptmkenny commentedSince there has been no activity for a month, I'm closing.