From e1642603eac05665d959c3d63ea8d1efbe9e431a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 15 Oct 2009 16:18:46 +0000 Subject: #216098 by kwinters, jgoldberg, drawk, sun: Make drupal_goto() use the same parameters as url(). --- modules/simpletest/tests/common_test.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/simpletest/tests/common_test.module') diff --git a/modules/simpletest/tests/common_test.module b/modules/simpletest/tests/common_test.module index 74866f098..8b6779463 100644 --- a/modules/simpletest/tests/common_test.module +++ b/modules/simpletest/tests/common_test.module @@ -63,9 +63,9 @@ function common_test_drupal_goto_land_fail() { /** * Implement hook_drupal_goto_alter(). */ -function common_test_drupal_goto_alter(&$args) { - if ($args['path'] == 'common-test/drupal_goto/fail') { - $args['path'] = 'common-test/drupal_goto/redirect'; +function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code) { + if ($path == 'common-test/drupal_goto/fail') { + $path = 'common-test/drupal_goto/redirect'; } } -- cgit v1.2.3