You are here

function nodehierarchy_node_load in Node Hierarchy 7.4

Same name and namespace in other branches
  1. 7.2 nodehierarchy.module \nodehierarchy_node_load()

Implements hook_node_load().

File

./nodehierarchy.module, line 213

Code

function nodehierarchy_node_load($nodes) {
  foreach ($nodes as $nid => $node) {
    $nid = empty($node->nid) ? null : $node->nid;
    $node->nodehierarchy_parents = nodehierarchy_get_node_parents($nid);
  }
}