You are here

function conditional_fields_delete_field in Conditional Fields 6.2

Same name and namespace in other branches
  1. 6 conditional_fields.module \conditional_fields_delete_field()

Delete a conditonal field's database data

1 call to conditional_fields_delete_field()
conditional_fields_save_field in ./conditional_fields.module
Handle saving of individual controlled field settings $controlling_fields is a keyed array of controlling fields names and trigger values

File

./conditional_fields.module, line 1331
Content fields and groups visibility based on the values of user defined 'trigger' fields.

Code

function conditional_fields_delete_field($type_name, $controlled_field, $controlling_field) {
  db_query("DELETE FROM {conditional_fields} WHERE control_field_name = '%s' AND field_name = '%s' AND type = '%s'", $controlling_field, $controlled_field, $type_name);
}