You are here

function conditional_fields_load_dependencies in Conditional Fields 8

Same name and namespace in other branches
  1. 7.3 conditional_fields.module \conditional_fields_load_dependencies()
  2. 4.x 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();
}