function nodehierarchy_nodeapi in Node Hierarchy 6.2
Same name and namespace in other branches
- 5 nodehierarchy.module \nodehierarchy_nodeapi()
- 6.3 nodehierarchy.module \nodehierarchy_nodeapi()
- 6 nodehierarchy.module \nodehierarchy_nodeapi()
Implmentation of hook_nodeapi().
File
- ./
nodehierarchy.module, line 453 - A module to make nodes hierarchical.
Code
function nodehierarchy_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
switch ($op) {
case 'insert':
nodehierarchy_insert_node($node);
break;
case 'update':
nodehierarchy_update_node($node);
break;
case 'prepare':
return nodehierarchy_prepare_node($node);
break;
case 'load':
return nodehierarchy_load_node($node);
break;
case 'delete':
nodehierarchy_delete_node($node);
break;
case 'view':
if ($page && !$teaser) {
nodehierarchy_set_breadcrumbs($node);
}
break;
}
}