summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-08-13 20:53:23 +0000
committerDries Buytaert2003-08-13 20:53:23 +0000
commited6b9605dca9581f3708cec41c6ba4a4f2fe7678 (patch)
tree3dfda713838487ace85303cfc57123ddd1b96739
parent66e907e4de56786808b7dc6516528f407fdfe1ae (diff)
- Bugfix: fixed problem with "exit" hook not always being called. Reported
by Jeremy. Patch by Moshe.
-rw-r--r--includes/common.inc16
1 files changed, 14 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 77b53f5..7373c32 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1022,7 +1022,16 @@ function drupal_page_header() {
exit();
}
}
+
print $cache->data;
+
+ /*
+ ** A hook for modules where modules may take action at the end of a
+ ** request good uses include setting a cache, page logging, etc.
+ */
+
+ module_invoke_all("exit");
+
exit();
}
}
@@ -1043,8 +1052,11 @@ function drupal_page_footer() {
page_set_cache();
}
- // a hook for modules where modules may take action at the end of a request
- // good uses include setting a cache, page logging, etc.
+ /*
+ ** A hook for modules where modules may take action at the end of a
+ ** request good uses include setting a cache, page logging, etc.
+ */
+
module_invoke_all("exit");
}