Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It is possible to modify recipients in hook_privatemsg_message_presave_alter, but in the submit handler for the form privatemsg_new, the $recipient_names array is build before the message is sent and presave hook is called.
Since objects pass by reference by default, it makes sence to do this after presave hook instead and after the message is sent.
Comment | File | Size | Author |
---|---|---|---|
#1 | privatemsg-1352444-1.patch | 1.45 KB | trogels |
Comments
Comment #1
trogels CreditAttribution: trogels commentedComment #2
ptmkenny CreditAttribution: ptmkenny commentedMarking this as bug, not a feature, because of http://drupal.org/node/1352444
Comment #3
ptmkenny CreditAttribution: ptmkenny commentedComment #4
ptmkenny CreditAttribution: ptmkenny commented#1: privatemsg-1352444-1.patch queued for re-testing.
Comment #5
ptmkenny CreditAttribution: ptmkenny commentedComment #6
ptmkenny CreditAttribution: ptmkenny commented#1: privatemsg-1352444-1.patch queued for re-testing.
Comment #6.0
ptmkenny CreditAttribution: ptmkenny commentedpatch uploaded
Comment #7
ivnish CreditAttribution: ivnish commented