From 4b01b27dd8e84d6df0a8dd48d99101481890cacf Mon Sep 17 00:00:00 2001
From: Bradley M. Froehle <brad.froehle@gmail.com>
Date: Thu, 17 Mar 2011 10:38:22 -0700
Subject: [PATCH] Issue #1047408 - Document advanced usage of $form_state['redirect']

---
 form_example/form_example_tutorial.inc |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/form_example/form_example_tutorial.inc b/form_example/form_example_tutorial.inc
index fe5a34e..876ca47 100644
--- a/form_example/form_example_tutorial.inc
+++ b/form_example/form_example_tutorial.inc
@@ -536,6 +536,16 @@ function form_example_tutorial_8_page_two_submit($form, &$form_state) {
 
   // If we wanted to redirect on submission, set $form_state['redirect']
   // $form_state['redirect'] = 'node'; // Redirects the user to /node.
+
+  // Alternatively, $form_state['redirect'] can be an array of options to pass
+  // to drupal_goto(). For example,
+  // $form_state['redirect'] = array(
+  //   'foo',
+  //   array(
+  //     'query' => 'bar',
+  //     'fragment' => 'baz',
+  //   ),
+  // );
 }
 
 //////////////// Tutorial Example 9 //////////////////////
-- 
1.7.4.1

