You are here

function theme_nodehiararchy_children_embed in Node Hierarchy 6.2

Same name and namespace in other branches
  1. 6.3 nodehierarchy_views/nodehierarchy_views.module \theme_nodehiararchy_children_embed()

Render the embedded chidren for the given node.

File

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

Code

function theme_nodehiararchy_children_embed($element) {
  if (!empty($element['#nodehierarchy_view']) && ($view = views_get_view($element['#nodehierarchy_view']))) {
    $display = $element['#nodehierarchy_view_display'];
    $arguments = $element['#nodehierarchy_view_args'];
    $view->override_path = "node";
    return $view
      ->execute_display($display, $arguments);
  }
  return '';
}