(This would for me be a 7.x issue feature request, but that branch hasn't been made yet.)
The main use case for this is the book module. When adding nodes to a book, the only way to not have to select the parent node each time is to follow the link Add child page which then brings you to the node add form at a path such as this: /node/add/book?parent=421
Ideally, the ?parent=421 would remain when redirection is complete, and the Save and add another would keep on working with the original conditions.
Comments
Comment #1
Realeiko commentedI've tweaked submitagain_node_form_submit(...) to allow propagation of destination param. It works nice with Nodereference URL Module (It was my original need), allowing the creation of a bunch of secondary nodes from a view related to a primary node, and then coming back to de view in the last submit.
The key is $form_state['redirect'] can be an array, and the second value in this array can hold uri parameters, so propagating all parameters its only a matter of strings operation and sanitizing. My code is this:
Enjoy! I'm waiting for this usefull feature in next release! I hope it will be soon...! ;)
Comment #2
mlncn commentedHi Reileiko! Is your need for Drupal 6 or Drupal 7?
Comment #3
Realeiko commentedOps!! It's for Drupal 6.
Comment #4
avpadernoI am closing this issue, as it has been created for a release that is now not supported.