function bundle_inherit_bundle_get_children_all in Bundle Inherit 7
Get all children bundles of the selected entity bundle.
1 call to bundle_inherit_bundle_get_children_all()
- bundle_inherit_validate_field_instance_creation in ./
bundle_inherit.module - Additional validation function to the field_ui_field_overview_form.
File
- ./
bundle_inherit.module, line 194 - Bundle Inherit module.
Code
function bundle_inherit_bundle_get_children_all($entity_type, $bundle_parent) {
$children = array();
$children = bundle_inherit_bundle_get_children($entity_type, $bundle_parent);
foreach ($children as $child) {
$children = array_merge($children, bundle_inherit_bundle_get_children_all($entity_type, $child['type']));
}
return $children;
}