Currently privatemsg_new_form_submit does a drupal_goto at the end of the function. This is bad, because in this way it is not possible to alter the redirect target without hacking privatemsg.module.
Instead, the target path should simply be returned by the submit function, and FAPI will do it's magic (redirecting to the returned path or to the value of the form's #redirect property, if someone has set it via form_alter).
It's just a simple one-line patch, and no existing behaviour is changed.
| Comment | File | Size | Author |
|---|---|---|---|
| privatemsg.patch | 585 bytes | Frando |
Comments
Comment #1
berdirI'm closing old issues since Privatemsg for Drupal 5 is not maintained anymore. I suggest you switch to Drupal 6 if possible, many of the reported issues are probably already resolved there and if not, you're welcome to open a new issue.