You are here

function ds_views_row_render_comment in Display Suite 7

Same name and namespace in other branches
  1. 7.2 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 404
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 drupal_render($element);
}