From 09d56c3509265ffd59cb2ef52963e9955d878088 Mon Sep 17 00:00:00 2001
From: aagbsn <aagbsn@slave_1.chapterthree.com>
Date: Tue, 13 Sep 2011 00:46:32 +0000
Subject: [PATCH] fix for d7 api changes by boftx

https://drupal.org/node/1024560#comment-3956546
describes a fix for d7 api changes in drupal_goto, here is a patch
---
 faq_ask.module |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/faq_ask.module b/faq_ask.module
index a8c7597..d81f6ed 100644
--- a/faq_ask.module
+++ b/faq_ask.module
@@ -177,7 +177,7 @@ function faq_ask_menu() {
  * @return void
  */
 function faq_ask_page($tid = NULL) {
-  drupal_goto('node/add/faq', 'ask=TRUE');
+  drupal_goto('node/add/faq', array('query' => array('ask'=>'TRUE')));
 }
 
 /**
@@ -199,7 +199,7 @@ function faq_ask_edit($node) {
     if ($user->uid == $node->uid) {
 //      $form = drupal_get_form('faq_ask_form', NULL, $node);
 //      return $form;
-      drupal_goto("node/$node->nid/edit", 'ask=TRUE');
+      drupal_goto('node/$node->nid/edit', array('query' => array('ask'=>'TRUE')));
     }
     else {
       drupal_set_message(t('You are not allowed to edit that question.'), 'error');
-- 
1.6.0.4

