summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-15 16:18:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-15 16:18:46 +0000
commite1642603eac05665d959c3d63ea8d1efbe9e431a (patch)
treeb927cc0b278e90594310d8291091d76af9c57d40 /modules/system
parentc7557262b3ac01f40613dd6141ef09d1ae7b84ba (diff)
downloadbrdo-e1642603eac05665d959c3d63ea8d1efbe9e431a.tar.gz
brdo-e1642603eac05665d959c3d63ea8d1efbe9e431a.tar.bz2
#216098 by kwinters, jgoldberg, drawk, sun: Make drupal_goto() use the same parameters as url().
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.api.php24
1 files changed, 10 insertions, 14 deletions
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.
- * <code>
- * $args = array(
- * 'path' => &$path,
- * 'query' => &$query,
- * 'fragment' => &$fragment,
- * 'http_response_code' => &$http_response_code,
- * );
- * </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;
}
/**