security updated for entity api
This commit is contained in:
@@ -88,6 +88,9 @@ class entity_views_plugin_row_entity_view extends views_plugin_row {
|
||||
|
||||
public function render($values) {
|
||||
if ($entity = $this->get_value($values)) {
|
||||
// Add the view object as views_plugin_row_node_view::render() would.
|
||||
// Otherwise the views theme suggestions won't work properly.
|
||||
$entity->view = $this->view;
|
||||
$render = $this->rendered_content[entity_id($this->entity_type, $entity)];
|
||||
return drupal_render($render);
|
||||
}
|
||||
|
Reference in New Issue
Block a user