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/system/system.api.php | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'modules/system/system.api.php') diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 8826e6a08..c1f597855 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -2262,21 +2262,17 @@ function hook_install_tasks() { /** * Change the page the user is sent to by drupal_goto(). * - * @param $args - * The array keys are the same as drupal_goto() arguments and the array can - * be changed. - * - * $args = array( - * 'path' => &$path, - * 'query' => &$query, - * 'fragment' => &$fragment, - * 'http_response_code' => &$http_response_code, - * ); - * - */ -function hook_drupal_goto_alter(array $args) { + * @param &$path + * A Drupal path or a full URL. + * @param &$options + * An associative array of additional URL options to pass to url(). + * @param &$http_response_code + * The HTTP status code to use for the redirection. See drupal_goto() for more + * information. + */ +function hook_drupal_goto_alter(&$path, &$options, &$http_response_code) { // A good addition to misery module. - $args['http_response_code'] = 500; + $http_response_code = 500; } /** -- cgit v1.2.3