mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-22 08:42:35 +02:00
[feature/php-events] Fix docs and naming of core.viewonline_override_location
PHPBB3-9550
This commit is contained in:
parent
97f50c9771
commit
0ebe1f8764
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user