function nodehierarchy_previous_sibling in Node Hierarchy 5
Same name and namespace in other branches
- 6 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 851 - A module to make nodes hierarchical.
Code
function nodehierarchy_previous_sibling($node) {
if ($nid = nodehierarchy_previous_sibling_nid($node)) {
return node_load($nid);
}
return NULL;
}