You are here

function nodeorder_node_insert in Node Order 7

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

Implements hook_node_insert().

Handle the weights of the node in the taxonomy orderable lists it id added.

File

./nodeorder.module, line 765
Nodeorder module.

Code

function nodeorder_node_insert($node) {
  $tids = nodeorder_orderable_tids($node, TRUE);
  foreach ($tids as $tid) {
    nodeorder_add_node_to_list($node, $tid);
  }
}