You are here

function ds_views_row_render_node 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_node()

Render the node through the entity plugin.

File

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

Code

function ds_views_row_render_node($entity, $view_mode, $load_comments) {
  $node_display = node_view($entity, $view_mode);
  if ($load_comments && module_exists('comment')) {
    $node_display['comments'] = comment_node_page_additions($entity);
  }
  return $node_display;
}