You are here

function nodehierarchy_views_delete_node in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
  2. 6 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
  3. 6.2 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
  4. 7.4 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_delete_node()
  5. 7.2 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_nodeapi in nodehierarchy_views/nodehierarchy_views.module
Implementation of hook_nodeapi().

File

nodehierarchy_views/nodehierarchy_views.module, line 97
Views.module integration for nodehierarchy.module.

Code

function nodehierarchy_views_delete_node($node) {
  db_query('DELETE FROM {nodehierarchy_views} WHERE nid = %d', $node->nid);
}