function nodehierarchy_views_nodeapi in Node Hierarchy 6
Same name and namespace in other branches
- 5 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
- 6.3 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
- 6.2 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
Implmentation of hook_nodeapi().
File
- nodehierarchy_views/
nodehierarchy_views.module, line 14 - Views.module integration for nodehierarchy.module.
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 'load':
return nodehierarchy_views_load_node($node);
break;
case 'delete':
nodehierarchy_views_delete_node($node);
break;
case 'validate':
break;
case 'view':
if ($page && user_access('access embedded child view')) {
nodehierarchy_views_embed_children($node);
}
break;
}
}