You are here

function theme_heartbeat_content in Heartbeat 6.4

Theme function for a heartbeat_content

File

modules/heartbeat_example/heartbeat_example.module, line 293

Code

function theme_heartbeat_content($message, $node) {
  $output = '';
  $user = heartbeat_user_load($message->uid);
  $output .= '<div class="icon-left-margin">';
  $output .= '<span class="avatar">' . l(theme('imagecache', 'tiny_picture', $user->picture), 'user/' . $user->uid, array(
    'html' => TRUE,
  )) . '</span>';
  $output .= '</div>';

  // If the message has to be shown anyway (inside the message)
  $output .= '<div class="heartbeat-indent">';
  $output .= $message->message;

  //$output .= $message->rebuild_message();
  $output .= '</div>';
  return $output;
}