diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-13 21:16:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-13 21:16:44 +0000 |
commit | 24c259cdd87e747187aecf94dc1f1834e7602adf (patch) | |
tree | 807f9e82346dcf8d397ef9756ef049ff1c1b2d93 /modules/system/system.api.php | |
parent | 3257ebf6606c4ab7c56acb012be95075eb67fbda (diff) | |
download | brdo-24c259cdd87e747187aecf94dc1f1834e7602adf.tar.gz brdo-24c259cdd87e747187aecf94dc1f1834e7602adf.tar.bz2 |
- Patch #601570 by effulgentsia: hook_exit() and other cleanup needs to happen for AJAX requests too.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r-- | modules/system/system.api.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 2826cdbc6..1c5094704 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -259,7 +259,7 @@ function hook_element_info_alter(&$type) { * Perform cleanup tasks. * * This hook is run at the end of each page request. It is often used for - * page logging and printing out debugging information. + * page logging and specialized cleanup. This hook MUST NOT print anything. * * Only use this hook if your code must run even for cached page views. * If you have code which must run once on all non cached pages, use @@ -271,9 +271,6 @@ function hook_element_info_alter(&$type) { * @param $destination * If this hook is invoked as part of a drupal_goto() call, then this argument * will be a fully-qualified URL that is the destination of the redirect. - * Modules may use this to react appropriately; for example, nothing should - * be output in this case, because PHP will then throw a "headers cannot be - * modified" error when attempting the redirection. */ function hook_exit($destination = NULL) { db_update('counter') |