You are here

function views_handler_field_heartbeat_message::render in Heartbeat 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

views/views_handler_field_heartbeat_message.inc, line 34

Class

views_handler_field_heartbeat_message
Field handler to present a message for the activity.

Code

function render($values) {
  $variables = heartbeat_decode_message_variables($this
    ->get_value($values, 'variables'));
  $template_id = $this
    ->get_value($values, 'message_id');
  $template = heartbeat_message_template_load($template_id);
  return $this
    ->render_message($template->message, $variables);
}