You are here

function ds_views_row_render_comment in Display Suite 7.2

Same name and namespace in other branches
  1. 7 views/views_plugin_ds_entity_view.inc \ds_views_row_render_comment()

Render the comment through the entity plugin.

File

views/views_plugin_ds_entity_view.inc, line 529
Provides the Display Suite views entity style plugin.

Code

function ds_views_row_render_comment($entity, $view_mode, $load_comments) {
  $node = node_load($entity->nid);
  $element = comment_view($entity, $node, $view_mode);
  return $element;
}