Closed (won't fix)
Project:
Privatemsg
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2008 at 14:32 UTC
Updated:
23 Feb 2010 at 12:17 UTC
Hi,
I’m working on a workflow action, which allows sending a privatemsg to a user. In that case it’s mandatory to configure the shown sender-user.
i could call _privatemsg_send, but that isn’t very "nice", maybe we could define an api function with the sender user object? Or add it at the end of privatemsg_send_privatemsg. (and check in the function)
function privatemsg_send_privatemsg($recipient, $subject, $body, $format = FILTER_FORMAT_DEFAULT, $thread = 0, $type = 'private-message', $variables = array()) {
global $user;
return _privatemsg_send($user, $recipient, $subject, $body, $format, $thread, $type, $variables);
}regards
Comments
Comment #1
nodestroy commentedno thoughts?
Comment #2
berdirI'm closing old issues, no new features are added to Drupal 5.x versions.
FYI, it is possible to configure the sending account in Privatemsg 6.x-1.x and upward.