You are here

function views_handler_field_heartbeat_attachments::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_attachments.inc, line 17

Class

views_handler_field_heartbeat_attachments
Field handler to present message attachments for the activity.

Code

function render($values) {
  $uaid = $this
    ->get_value($values, 'uaid');
  $heartbeatActivity = heartbeat_activity_load($uaid);
  if ($heartbeatActivity->template
    ->hasPluginAttachments()) {
    $view = heartbeat_activity_view($heartbeatActivity);
    return $this
      ->render_attachments($view['attachments']);
  }
}