aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2016-05-22 14:38:19 +0200
committerJakub Senko <jakubsenko@gmail.com>2016-05-27 13:46:23 +0200
commit10d96d4f33a6de581966823b2fb9c84332b7ec96 (patch)
treef99fa4a9eed1d0bae7b785975e727d21d666b50d /phpBB/includes
parente7262e2d39feb7946710f6ae4bb17aac67f26204 (diff)
downloadforums-10d96d4f33a6de581966823b2fb9c84332b7ec96.tar
forums-10d96d4f33a6de581966823b2fb9c84332b7ec96.tar.gz
forums-10d96d4f33a6de581966823b2fb9c84332b7ec96.tar.bz2
forums-10d96d4f33a6de581966823b2fb9c84332b7ec96.tar.xz
forums-10d96d4f33a6de581966823b2fb9c84332b7ec96.zip
[ticket/14429] Add core.modify_users_online_string_modify
PHPBB3-14429
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b225effacc..12ca5540ca 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4334,6 +4334,30 @@ function obtain_users_online_string($online_users, $item_id = 0, $item = 'forum'
}
}
}
+
+ /**
+ * Modify online userlist data
+ *
+ * @event core.obtain_users_online_string_before_modify
+ * @var array online_users Array with online users data
+ * from obtain_users_online()
+ * @var int item_id Restrict online users to item id
+ * @var string item Restrict online users to a certain
+ * session item, e.g. forum for
+ * session_forum_id
+ * @var array rowset Array with online users data
+ * @var array user_online_link Array with online users items (usernames)
+ * @since 3.1.10-RC1
+ */
+ $vars = array(
+ 'online_users',
+ 'item_id',
+ 'item',
+ 'rowset',
+ 'user_online_link',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.obtain_users_online_string_before_modify', compact($vars)));
+
$online_userlist = implode(', ', $user_online_link);
if (!$online_userlist)