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.
Setting the redirect path via hook_form_alter is not possible, because the privatemsg_new_submit() overwrites the value of the $form_state['redirect']. An if statement which checks if the $form_state['redirect'] is allready set should work fine.
Comments
Comment #1
ptmkenny CreditAttribution: ptmkenny commentedComment #2
ivnish CreditAttribution: ivnish commented