You are here

function field_rules_save_field in Field Rules 7

File

./field_rules.rules.inc, line 244

Code

function field_rules_save_field($field) {
  try {
    return field_create_field($field);
  } catch (FieldException $e) {
    return field_update_field($field);
  }
}