You are here

function _heartbeat_build_block in Heartbeat 6.3

Helper function that wraps the template functions

1 call to _heartbeat_build_block()
theme_heartbeat_list in ./heartbeat.module
Theme function for a list of heartbeat activity messages

File

./heartbeat.module, line 712

Code

function _heartbeat_build_block($messages) {
  if (empty($messages)) {
    return '<p>' . t('<em>No activity yet.</em>') . '</p>';
  }
  $content = '';

  // Add messages in one of the formats
  $content .= _heartbeat_messages_format_interval($messages);

  // TODO Add footer content with other site information
  if (isset($messages->info)) {
    $content .= _heartbeat_activity_get_info();
  }
  return $content;
}