You are here

function nodehierarchy_load_node in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy.module \nodehierarchy_load_node()
  2. 6.3 nodehierarchy.module \nodehierarchy_load_node()
  3. 6.2 nodehierarchy.module \nodehierarchy_load_node()
  4. 7.2 nodehierarchy.module \nodehierarchy_load_node()

Load a node's parent and weight when the node is loaded.

2 calls to nodehierarchy_load_node()
nodehierarchy_insert_node in ./nodehierarchy.module
Insert or update a node. Set it's parent
nodehierarchy_nodeapi in ./nodehierarchy.module
Implmentation of hook_nodeapi().

File

./nodehierarchy.module, line 497

Code

function nodehierarchy_load_node($node) {
  $additions = db_fetch_array(db_query('SELECT parent, order_by FROM {nodehierarchy} WHERE nid = %d', $node->nid));
  return $additions;
}