function _nodehierarhcy_is_expanded in Node Hierarchy 6
Same name and namespace in other branches
- 5 nodehierarchy.module \_nodehierarhcy_is_expanded()
Is the given node expanded (in the current site outline).
Parameters
$nid: The node id of the node we want to check.
Return value
Boolean. TRUE if the node is expanded, FALSE if collapsed.
2 calls to _nodehierarhcy_is_expanded()
- nodehierarchy_get_node_children_list in ./
nodehierarchy.module - Display a list of nodes with nodehierarchy actions.
- theme_nodehierarchy_node_list in ./
nodehierarchy_theme.inc - Display a list of nodes with nodehierarchy actions
File
- ./
nodehierarchy.module, line 721
Code
function _nodehierarhcy_is_expanded($nid) {
$expanded_nodes = _nodehierarhcy_get_expanded();
return isset($expanded_nodes[$nid]);
}