function nodehierarchy_get_allowed_child_types in Node Hierarchy 6.2
Same name and namespace in other branches
- 6.3 nodehierarchy.module \nodehierarchy_get_allowed_child_types()
- 7.4 nodehierarchy.admin.inc \nodehierarchy_get_allowed_child_types()
- 7.2 nodehierarchy.module \nodehierarchy_get_allowed_child_types()
Get the allwed parent types for the given child type.
4 calls to nodehierarchy_get_allowed_child_types()
- nodehierarchy_node_can_be_child_of in ./
nodehierarchy.module - Determine if a given node can be a child of another given node.
- nodehierarchy_node_can_be_parent in ./
nodehierarchy.module - Can a node be a parent.
- theme_nodehierarchy_new_child_links in ./
nodehierarchy.module - Display links to create new children nodes of the given node
- _nodehierarchy_get_node_type_settings_form in ./
nodehierarchy.module - Get the nodehierarchy setting form for a particular node type.
File
- ./
nodehierarchy.module, line 911 - A module to make nodes hierarchical.
Code
function nodehierarchy_get_allowed_child_types($parent_type) {
$child_types = array_filter(variable_get('nh_allowchild_' . $parent_type, array()));
return array_unique($child_types);
}