function theme_nodehierarchy_children_embed in Node Hierarchy 7.2
Same name and namespace in other branches
- 7.4 nodehierarchy_views/nodehierarchy_views.module \theme_nodehierarchy_children_embed()
Render the embedded chidren for the given node.
1 theme call to theme_nodehierarchy_children_embed()
- nodehierarchy_views_embed_children in nodehierarchy_views/
nodehierarchy_views.module - Add the embedded children view to the node body if appropriate.
File
- nodehierarchy_views/
nodehierarchy_views.module, line 288 - Embed a view of children onto a node.
Code
function theme_nodehierarchy_children_embed($variables) {
$element = $variables['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 '';
}