You are here

function heartbeat_plugins_heartbeat_activity_view in Heartbeat 7

Implements hook_heartbeat_activity_view().

Parameters

HeartbeatActivity $heartbeatActivity: The activity message object.

File

modules/heartbeat_plugins/heartbeat_plugins.module, line 361

Code

function heartbeat_plugins_heartbeat_activity_view(HeartbeatActivity $heartbeatActivity, $view_mode = 'full', $language = NULL) {
  $heartbeatActivity->content['attachments'] = array(
    '#markup' => '',
  );
  if ($heartbeatActivity->template
    ->hasPluginAttachments()) {
    $heartbeatActivity->content['attachments']['#markup'] = theme('heartbeat_attachments', array(
      'heartbeat_activity' => $heartbeatActivity,
    ));
  }
}