Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.554 diff -u -r1.554 common.inc --- includes/common.inc 10 Aug 2006 15:42:32 -0000 1.554 +++ includes/common.inc 12 Aug 2006 20:57:10 -0000 @@ -250,7 +250,7 @@ * * @see drupal_get_destination() */ -function drupal_goto($path = '', $query = NULL, $fragment = NULL) { +function drupal_goto($path = '', $query = NULL, $fragment = NULL, $http_response_code = 302) { if (isset($_REQUEST['destination'])) { extract(parse_url($_REQUEST['destination'])); } @@ -263,7 +263,7 @@ // Before the redirect, allow modules to react to the end of the page request. module_invoke_all('exit', $url); - header('Location: '. $url); + header('Location: '. $url, true, $http_response_code); // The "Location" header sends a REDIRECT status code to the http // daemon. In some cases this can go wrong, so we make sure none @@ -1682,4 +1682,4 @@ */ function element_children($element) { return array_filter(array_keys((array) $element), 'element_child'); -} \ No newline at end of file +}