1.12.x admin_bar.module admin_bar_get_user_count()
1.10.x admin_bar.module admin_bar_get_user_count()
1.11.x admin_bar.module admin_bar_get_user_count()
1.7.x admin_bar.module admin_bar_get_user_count()

Return count of online authenticated users.

See also

user_block(), user.module

File

modules/admin_bar/admin_bar.module, line 403
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;
}