theme_closure

Definition

theme_closure($main = 0)
drupal/includes/theme.inc, line 1009

Description

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

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

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