You are here

function ds_views_row_ENTITY_NAME in Display Suite 7.2

Same name and namespace in other branches
  1. 7 ds.api.php \ds_views_row_ENTITY_NAME()

Theme an entity coming from the views entity plugin.

Parameters

$entity: The complete entity.

$view_mode: The name of the view mode.

File

./ds.api.php, line 543
Hooks provided by Display Suite module.

Code

function ds_views_row_ENTITY_NAME($entity, $view_mode) {
  $nid = $vars['row']->{$vars['field_alias']};
  $node = node_load($nid);
  $element = node_view($node, $view_mode);
  return drupal_render($element);
}