summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-05 13:05:31 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-05 13:05:31 +0000
commit6586b7646585d34b878bda18155a37e5eec729cb (patch)
tree344c0b1fc90a22b8e896e40c27fa0edc421e93f5 /modules/system/system.api.php
parent2f957104450835e8007a40af31d440f616517e7c (diff)
downloadbrdo-6586b7646585d34b878bda18155a37e5eec729cb.tar.gz
brdo-6586b7646585d34b878bda18155a37e5eec729cb.tar.bz2
- Patch by #1577 by chx, boombatower, Bèr Kessels, kkaefer: made SSL support a bit easier by providing two cookies and ... hook_goto_alter.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php24
1 files changed, 22 insertions, 2 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index a4ca25049..4f2ec074b 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -731,7 +731,7 @@ function hook_system_info_alter(&$info, $file) {
* Permissions are checked using user_access().
*
* For a detailed usage example, see page_example.module.
- *
+ *
* @return
* An array of which permission names are the keys and their corresponding
* values are descriptions of each permission.
@@ -2189,7 +2189,27 @@ function hook_profile_tasks() {
'myprofile_final_site_setup' => array(
),
);
- return $tasks;
+ return $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) {
+ // A good addition to misery module.
+ $args['http_response_code'] = 500;
}
/**