function conditional_fields_remove_field_settings in Conditional Fields 6
Same name and namespace in other branches
- 5 conditional_fields.module \conditional_fields_remove_field_settings()
- 6.2 conditional_fields.module \conditional_fields_remove_field_settings()
2 calls to conditional_fields_remove_field_settings()
File
- ./
conditional_fields.module, line 963 - 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);
}