From c4262320fde11c6375cab77940171ee335a84622 Mon Sep 17 00:00:00 2001 From: catch Date: Fri, 17 Aug 2012 12:03:39 +0100 Subject: [PATCH] Issue #1716900 by chx: Clarify why hook_exit() must not print. --- core/modules/system/system.api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php index c0571563d44..133342908e0 100644 --- a/core/modules/system/system.api.php +++ b/core/modules/system/system.api.php @@ -273,7 +273,8 @@ 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 specialized cleanup. This hook MUST NOT print anything. + * page logging and specialized cleanup. This hook MUST NOT print anything + * because by the time it runs the response is already sent to the browser. * * 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