Community Documentation

hook_footer

5 core.php hook_footer($main = 0)
6 core.php hook_footer($main = 0)

Insert closing HTML.

This hook enables modules to insert HTML just before the \</body\> closing tag of web pages. This is useful for including javascript code and for outputting debug information.

Parameters

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

Return value

The HTML to be inserted.

Related topics

File

developer/hooks/core.php, line 418
These are the hooks that are invoked by the Drupal core.

Code

<?php
function hook_footer($main = 0) {
  if (variable_get('dev_query', 0)) {
    return '<div style="clear:both;">' . devel_query_table() . '</div>';
  }
}
?>
Login or register to post comments