You are here

function nodehierarchy_next_sibling in Node Hierarchy 5

Same name and namespace in other branches
  1. 6 nodehierarchy.module \nodehierarchy_next_sibling()

Get the next sibling of the given node.

1 call to nodehierarchy_next_sibling()
nodehierarchy_next_sibling_link in ./nodehierarchy.module
Get the next sibling of the given node.

File

./nodehierarchy.module, line 820
A module to make nodes hierarchical.

Code

function nodehierarchy_next_sibling($node) {
  if ($nid = nodehierarchy_next_sibling_nid($node)) {
    return node_load($nid);
  }
  return NULL;
}