You are here

function efq_views_views_plugins_alter in EntityFieldQuery Views Backend 7

Implements hook_views_plugins_alter().

This allows us to use the node view style with EntityFieldQuery: Node and comment view style with EntityFieldQuery: Comment (just like with regular nodes and comments).

Note that these style plugins do an entity_load() even though they already get fully loaded entities from our query engine. However, entity_load has internal caching, so the only real overhead is an extra function call.

File

./efq_views.views.inc, line 433

Code

function efq_views_views_plugins_alter(&$plugins) {
  $plugins['row']['node']['base'][] = "efq_node";
  $plugins['row']['comment']['base'][] = "efq_comment";
}