Commit 6ddeae9f authored by Dries's avatar Dries

- Bugfix: fixed problem with "exit" hook not always being called.  Reported
  by Jeremy.  Patch by Moshe.
parent 6842d597
......@@ -1045,7 +1045,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();
}
}
......@@ -1068,8 +1077,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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment