function nodehierarchy_views_delete_node in Node Hierarchy 7.2
Same name and namespace in other branches
- 5 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
- 6.3 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
- 6 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
- 6.2 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
- 7.4 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
Delete the node_hierarchy_views row when a node is deleted.
1 call to nodehierarchy_views_delete_node()
- nodehierarchy_views_node_delete in nodehierarchy_views/
nodehierarchy_views.module - Implements hook_node_delete().
File
- nodehierarchy_views/
nodehierarchy_views.module, line 180 - Embed a view of children onto a node.
Code
function nodehierarchy_views_delete_node($node) {
db_delete('nodehierarchy_views')
->condition('nid', $node->nid)
->execute();
}