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

nodestroy’s picture

no thoughts?

berdir’s picture

Status: Active » Closed (won't fix)

I'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.