diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-05 16:46:57 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-05 16:46:57 +0200 |
| commit | 997075a008b594f62306184aeb9105d5180fdd6d (patch) | |
| tree | ed1fc95492678022e037c08be2fb19ad5ce50cb6 /phpBB/includes/functions.php | |
| parent | 1f9b23e721008ca2903b9b4e79008867554eddf4 (diff) | |
| download | forums-997075a008b594f62306184aeb9105d5180fdd6d.tar forums-997075a008b594f62306184aeb9105d5180fdd6d.tar.gz forums-997075a008b594f62306184aeb9105d5180fdd6d.tar.bz2 forums-997075a008b594f62306184aeb9105d5180fdd6d.tar.xz forums-997075a008b594f62306184aeb9105d5180fdd6d.zip | |
[feature/php-events] Add docs for core.page_footer
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e39d5ee13e..43bdb757e5 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5080,12 +5080,20 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 function page_footer($run_cron = true) { global $db, $config, $template, $user, $auth, $cache, $starttime, $phpbb_root_path, $phpEx; - global $request; - global $phpbb_dispatcher; + global $request, $phpbb_dispatcher; // A listener can set this variable to `true` when it overrides this function $page_footer_override = false; + /** + * Execute code and/or overwrite page_footer() + * + * @event core.page_footer + * @var bool run_cron Shall we run cron tasks + * @var bool page_footer_override Shall we return instead of running + * the rest of page_footer() + * @since 3.1-A1 + */ $vars = array('run_cron', 'page_footer_override'); extract($phpbb_dispatcher->trigger_event('core.page_footer', compact($vars))); |
