You are here

public function HeartbeatActivity::rebuild_message in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 includes/heartbeatactivity.inc \HeartbeatActivity::rebuild_message()
1 call to HeartbeatActivity::rebuild_message()
HeartbeatActivity::create_grouped_message in includes/heartbeatactivity.inc

File

includes/heartbeatactivity.inc, line 156
HeartbeatActivity object Defines one heartbeat activity object.

Class

HeartbeatActivity
Class defines an activity message object

Code

public function rebuild_message($concat = FALSE) {
  if (count($this->variables) > 0) {
    $variables = array();
    foreach ($this->variables as $key => $value) {
      $key[0] = '!';
      $variables[$key] = $value;
    }
  }
  if ($concat) {
    return t($this->template->message_concat, $variables);
  }
  return t($this->template->message, $variables);
}