You are here

function _nodehierarchy_get_types in Node Hierarchy 6

Get a list of types which can be parents or children (node hierarchy-managed types).

2 calls to _nodehierarchy_get_types()
nodehierarchy_get_children in ./nodehierarchy.module
Get the children of the given node.
_nodehierarchy_normalize_child_order in ./nodehierarchy.module
Normalize the order of the children of the given node.

File

./nodehierarchy.module, line 1155

Code

function _nodehierarchy_get_types($quoted = FALSE) {
  $types = array();
  foreach (node_get_types() as $key => $type) {
    if (variable_get('nh_parent_' . $key, FALSE) || variable_get('nh_child_' . $key, FALSE)) {
      $types[] = $quoted ? "'{$key}'" : $key;
    }
  }
  return $types;
}