function _nodehierarhcy_get_expanded in Node Hierarchy 5
Same name and namespace in other branches
- 6 nodehierarchy.module \_nodehierarhcy_get_expanded()
Get the list of expanded nodes.
Return value
An array whose keys are the expanded nodes (values are irrelevant).
2 calls to _nodehierarhcy_get_expanded()
- _nodehierarchy_toggle_expand_url_params in ./
nodehierarchy.module - Get the url params needed to toggle the expansion of the given node id.
- _nodehierarhcy_is_expanded in ./
nodehierarchy.module - Is the given node expanded (in the current site outline).
File
- ./
nodehierarchy.module, line 688 - A module to make nodes hierarchical.
Code
function _nodehierarhcy_get_expanded() {
static $expanded_nodes = NULL;
if ($expanded_nodes === NULL) {
if (preg_match("/(\\d+,?)*/", @$_GET['nodehierarchy_expanded'])) {
$expanded_nodes = array_flip(explode(",", $_GET['nodehierarchy_expanded']));
}
}
return $expanded_nodes;
}