function nodehierarchy_views_nodeapi in Node Hierarchy 6.3
Same name and namespace in other branches
- 5 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
- 6 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
- 6.2 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
Implementation of hook_nodeapi().
File
- nodehierarchy_views/
nodehierarchy_views.module, line 49 - Embed a view of children onto a node.
Code
function nodehierarchy_views_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
switch ($op) {
case 'insert':
return nodehierarchy_views_insert($node);
break;
case 'update':
return nodehierarchy_views_update($node);
break;
case 'prepare':
return nodehierarchy_views_prepare_node($node);
break;
case 'load':
return nodehierarchy_views_load_node($node);
break;
case 'delete':
nodehierarchy_views_delete_node($node);
break;
case 'validate':
break;
case 'view':
if (!$teaser && user_access('access embedded child view')) {
nodehierarchy_views_embed_children($node);
}
break;
}
}