function conditional_fields_load_dependencies in Conditional Fields 4.x
Same name and namespace in other branches
- 8 conditional_fields.module \conditional_fields_load_dependencies()
- 7.3 conditional_fields.module \conditional_fields_load_dependencies()
Loads all dependencies from the database for a given bundle.
1 call to conditional_fields_load_dependencies()
- conditional_fields_element_after_build in ./
conditional_fields.module - Processes form elements with dependencies.
File
- ./
conditional_fields.module, line 179 - Contains conditional_fields.module.
Code
function conditional_fields_load_dependencies($entity_type, $bundle) {
static $dependency_helper;
if (!isset($dependency_helper)) {
$dependency_helper = new DependencyHelper($entity_type, $bundle);
}
return $dependency_helper
->getBundleDependencies();
}