You are here

function _heartbeat_activity_get_info in Heartbeat 6.3

Helper function to get the extra site activity information

1 call to _heartbeat_activity_get_info()
_heartbeat_build_block in ./heartbeat.module
Helper function that wraps the template functions

File

./heartbeat.module, line 883

Code

function _heartbeat_activity_get_info() {
  $sitename = ucfirst(variable_get('site_name', 'this site'));
  $num_users = db_result(db_query("SELECT COUNT(uid) AS 'users' FROM {users} WHERE status= 1"));
  $content .= '<div class="heartbeat_info_text">';
  $content .= t('!sitename counts !num_users users', array(
    '!sitename' => $sitename,
    '!num_users' => $num_users,
  ));
  $content .= '</div>';
  return $content;
}