You are here

function field_rules_save_field_instance in Field Rules 7

File

./field_rules.rules.inc, line 272

Code

function field_rules_save_field_instance($field_instance) {
  try {
    return field_update_instance($field_instance);
  } catch (FieldException $e) {
    return field_create_instance($field_instance);
  }
}