function _nodehierarchy_get_children_count in Node Hierarchy 6.2
Same name and namespace in other branches
- 5 nodehierarchy.module \_nodehierarchy_get_children_count()
- 6.3 nodehierarchy.module \_nodehierarchy_get_children_count()
- 6 nodehierarchy.module \_nodehierarchy_get_children_count()
- 7.2 nodehierarchy.module \_nodehierarchy_get_children_count()
Count the children of the given node.
1 call to _nodehierarchy_get_children_count()
- nodehierarchy_form_alter in ./
nodehierarchy.module - Implementation of hooks_form_alter().
File
- ./
nodehierarchy.module, line 1061 - A module to make nodes hierarchical.
Code
function _nodehierarchy_get_children_count($parent) {
if ($plid = _nodehierarchy_get_node_mlid($parent)) {
return _nodehierarchy_get_children_count_plid($plid);
}
return 0;
}