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

ptmkenny’s picture

Title: Custom resirect not possible via hook_form_alter » Custom redirect not possible via hook_form_alter
Category: task » bug
Status: Needs work » Active
ivnish’s picture

Category: Bug report » Feature request
Issue summary: View changes
Status: Active » Closed (outdated)