Same name and namespace in other branches
  1. 4.6.x includes/common.inc \drupal_page_footer()
  2. 4.7.x includes/common.inc \drupal_page_footer()
  3. 6.x includes/common.inc \drupal_page_footer()
  4. 7.x includes/common.inc \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().

Related topics

1 call to drupal_page_footer()
index.php in ./index.php

File

includes/common.inc, line 1436
Common functions that many Drupal modules will need to reference.

Code

function drupal_page_footer() {
  if (variable_get('cache', 0)) {
    page_set_cache();
  }
  module_invoke_all('exit');
}