You are here

function conditional_fields_update_field in Conditional Fields 6.2

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

Update an existing conditonal field's database data

1 call to conditional_fields_update_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 1324
Content fields and groups visibility based on the values of user defined 'trigger' fields.

Code

function conditional_fields_update_field($type_name, $controlled_field, $controlling_field, $trigger_values) {
  db_query("UPDATE {conditional_fields} SET trigger_values = '%s' WHERE control_field_name = '%s' AND field_name = '%s' AND type = '%s'", serialize($trigger_values), $controlling_field, $controlled_field, $type_name);
}