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.

Comments

smk-ka’s picture

Version: 4.7.x-1.x-dev »
Assigned: Unassigned » smk-ka
Status: Needs work » Needs review
StatusFileSize
new8.43 KB

Fixed 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 to privatemsg_send_privatemsg().
--
Stefan Kudwien
www.unleashedmind.com

BenK’s picture

Title: Add capability of privatemsg to send system messages. » Add capability of privatemsg to send system messages
Assigned: smk-ka » Unassigned
Category: task » feature
Status: Needs review » Active

Hey 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

ptmkenny’s picture

Version: » 7.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

I 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?

ptmkenny’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Since there has been no activity for a month, I'm closing.