You are here

function ddf_remove_dependency in Dynamic dependent fields 7

1 call to ddf_remove_dependency()
ddf_entityreference_field_update_field in modules/ddf_entityreference/ddf_entityreference.module
Implements hook_field_update_field().

File

./ddf.module, line 180

Code

function ddf_remove_dependency($dependent_field_name, $entity_type, $bundle) {
  db_delete('ddf')
    ->condition('dependent_field_name', $dependent_field_name)
    ->condition('entity_type', $entity_type)
    ->condition('bundle', $bundle)
    ->execute();
}