function ds_views_row_render_node in Display Suite 7
Same name and namespace in other branches
- 7.2 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 393 - 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 drupal_render($node_display);
}