You are here

function nodehierarchy_get_allowed_child_types in Node Hierarchy 6.3

Same name and namespace in other branches
  1. 6.2 nodehierarchy.module \nodehierarchy_get_allowed_child_types()
  2. 7.4 nodehierarchy.admin.inc \nodehierarchy_get_allowed_child_types()
  3. 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 1070
A module to make nodes hierarchical.

Code

function nodehierarchy_get_allowed_child_types($parent_type) {
  $child_types = array_filter(variable_get('nh_children_allowed_types_' . $parent_type, array()));
  return array_unique($child_types);
}