function conditional_fields_dependency_delete in Conditional Fields 7.3
Deletes dependencies.
2 calls to conditional_fields_dependency_delete()
- conditional_fields_dependency_delete_form_submit in includes/
conditional_fields.admin.inc - Confirm form submit for the deletion of a dependency.
- conditional_fields_features_rebuild in includes/
conditional_fields.features.inc - Implements hook_features_rebuild().
File
- ./
conditional_fields.module, line 1406 - Define dependencies between fields based on their states and values.
Code
function conditional_fields_dependency_delete($dependency_ids) {
$or = db_or();
foreach ($dependency_ids as $id) {
$or = $or
->condition('id', $id);
}
return db_delete('conditional_fields')
->condition($or)
->execute();
}