You are here

function nodehierarchy_previous_sibling in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy.module \nodehierarchy_previous_sibling()

Get the previous sibling of the given node.

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

File

./nodehierarchy.module, line 904

Code

function nodehierarchy_previous_sibling($node) {
  if ($nid = nodehierarchy_previous_sibling_nid($node)) {
    return node_load($nid);
  }
  return NULL;
}