[development] Form adding query parameters
nan_wich at bellsouth.net
Fri Oct 1 14:11:16 UTC 2010
Thanks, Steven. That was real close, but should be:
$form_state['redirect'] = array($_GET['q'], $r);
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Steven Jones
The actual redirection of forms is handled by drupal_redirect_form:
Which looking at the code, passes the $form_state['redirect'] to drupal_goto.
drupal_goto has a second argument for the query string, so I think the end of
your form submit function may want to look something like:
drupal_set_message("going to $r");
$form_state['redirect'] = array($_GET['q'], array('query' => $r));
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development