You are here

function views_plugin_row_heartbeat_view::render in Heartbeat 7

Same name and namespace in other branches
  1. 6.3 views/plugins/views_plugin_row_heartbeat_view.inc \views_plugin_row_heartbeat_view::render()

Implements render($row).

Overrides views_plugin_row::render

File

views/views_plugin_row_heartbeat_view.inc, line 143
Contains the heartbeat activity view row style plugin.

Class

views_plugin_row_heartbeat_view
Plugin which performs a heartbeat_activity_view on the resulting object.

Code

function render($row) {
  $uaid = isset($row->uaid) ? $row->uaid : (isset($row->heartbeat_activity_uaid) ? $row->heartbeat_activity_uaid : 0);
  if ($uaid) {
    $activity = heartbeat_activity_load($uaid);
    $build = heartbeat_activity_view($activity);
    return render($build);
  }
  return '';
}