You are here

function nodeorder_node_delete in Node Order 7

Same name and namespace in other branches
  1. 8 nodeorder.module \nodeorder_node_delete()

Implements hook_node_delete().

Handle lists in which the node is removed.

File

./nodeorder.module, line 752
Nodeorder module.

Code

function nodeorder_node_delete($node) {

  // Get tids from node var; in the database they're already removed.
  $tids = nodeorder_orderable_tids_by_node($node);
  foreach ($tids as $tid) {
    nodeorder_handle_node_lists_decrease($tid);
  }
}