1 admin_bar.module | admin_bar_get_user_count() |
Return count of online authenticated users.
See also
user_block(), user.module
File
- core/
modules/ admin_bar/ admin_bar.module, line 550 - Render an administrative bar as a dropdown menu at the top of the window.
Code
function admin_bar_get_user_count() {
$interval = REQUEST_TIME - 900;
$count_auth = admin_bar_session_count($interval, FALSE);
return $count_auth;
}