You are here

function nodehierarchy_views_node_view in Node Hierarchy 7.2

Same name and namespace in other branches
  1. 7.4 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_node_view()

Implements hook_node_view().

File

nodehierarchy_views/nodehierarchy_views.module, line 104
Embed a view of children onto a node.

Code

function nodehierarchy_views_node_view($node, $view_mode = 'full') {
  if ($view_mode == 'full' && user_access('access embedded child view')) {
    nodehierarchy_views_embed_children($node);
  }
}