function theme_closure

6.x theme.inc theme_closure($main = 0)

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

Parameters

$main (optional): Whether the current page is the front page of the site.

Return value

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

Related topics

1 call to theme_closure()
chameleon_page in drupal-6.x/themes/chameleon/chameleon.theme
1 theme call to theme_closure()
template_preprocess_page in drupal-6.x/includes/theme.inc
Process variables for page.tpl.php

File

drupal-6.x/includes/theme.inc, line 1638
The theme system, which controls the output of Drupal.

Code

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