Hi@all,

I have removed the recipient of a message in the hook_privatemsg_message_presave_alter. When I send the message I still get the drupal message "A message has been sent to ..." although the user does not receive the message.

This is because the the names for the success message are rendered in privatemsg_new_submit before the hook_privatemsg_message_presave_alter is executed in _privatemsg_send.

Hope someone could take a look at this.

Thanks
dendie

Comments

braindrift’s picture

Is there any work on this?

ptmkenny’s picture

Status: Active » Closed (duplicate)