You are here

function theme_closure in Drupal 5

Same name and namespace in other branches
  1. 4 includes/theme.inc \theme_closure()
  2. 6 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): 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 themes/chameleon/chameleon.theme
2 theme calls to theme_closure()
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php…
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.

File

includes/theme.inc, line 1009
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');
}