Same name and namespace in other branches
  1. 4.7.x includes/theme.inc \theme_closure()
  2. 5.x includes/theme.inc \theme_closure()
  3. 6.x includes/theme.inc \theme_closure()

Execute hook_footer() which is run at the end of the page right before the close of the body tag.

Parameters

$main (optional):

Return value

A string containing the results of the hook_footer() calls.

Related topics

3 calls to theme_closure()
chameleon_page in themes/chameleon/chameleon.theme
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.
xtemplate_page in themes/engines/xtemplate/xtemplate.engine

File

includes/theme.inc, line 825
The theme system, which controls the output of Drupal.

Code

function theme_closure($main = 0) {
  $footer = module_invoke_all('footer', $main);
  return implode($footer, "\n");
}