From 0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 28 Jul 2012 16:12:05 +0200 Subject: [feature/php-events] Fix docs and naming of core.viewonline_override_location PHPBB3-9550 --- phpBB/viewonline.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'phpBB/viewonline.php') diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 32ea23c182..193fa61dd7 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -335,8 +335,18 @@ while ($row = $db->sql_fetchrow($result)) $location = $user->lang['INDEX']; $location_url = append_sid("{$phpbb_root_path}index.$phpEx"); + /** + * Modify the location name and url which are displayed in the list + * + * @event core.viewonline_override_location + * @var array on_page File name and query string + * @var array row Array with the users sql row + * @var string location Page name to displayed in the list + * @var string location_url Page url to displayed in the list + * @since 3.1-A1 + */ $vars = array('on_page', 'row', 'location', 'location_url'); - extract($phpbb_dispatcher->trigger_event('core.viewonline_location', compact($vars))); + extract($phpbb_dispatcher->trigger_event('core.viewonline_override_location', compact($vars))); break; } -- cgit v1.2.1