You are here

function conditional_fields_remove_field_settings in Conditional Fields 6.2

Same name and namespace in other branches
  1. 5 conditional_fields.module \conditional_fields_remove_field_settings()
  2. 6 conditional_fields.module \conditional_fields_remove_field_settings()
2 calls to conditional_fields_remove_field_settings()
conditional_fields_fieldgroup_remove_group_submit in ./conditional_fields.module
_conditional_fields_content_admin_field_remove_submit in ./conditional_fields.module

File

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

Code

function conditional_fields_remove_field_settings($field_name) {
  db_query("DELETE FROM {conditional_fields} WHERE control_field_name = '%s' OR field_name = '%s'", $field_name, $field_name);
}