drupal_page_footer
- Versions
- 4.6 – 7
drupal_page_footer()
Perform end-of-request tasks.
This function sets the page cache if appropriate, and allows modules to react to the closing of the page by calling hook_exit().
Code
includes/common.inc, line 2889
<?php
function drupal_page_footer() {
global $user;
module_invoke_all('exit');
// Commit the user session, if needed.
drupal_session_commit();
if (variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED && ($cache = drupal_page_set_cache())) {
drupal_serve_page_from_cache($cache);
}
else {
ob_flush();
}
_registry_check_code(REGISTRY_WRITE_LOOKUP_CACHE);
drupal_cache_system_paths();
module_implements_write_cache();
}
?>Login or register to post comments 