You are here

function field_validation_field_delete in Field Validation 7

Implements hook_field_delete().

File

./field_validation.module, line 205

Code

function field_validation_field_delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
  $rules = field_validation_get_field_rules($instance);
  if ($rules) {
    foreach (array_keys($rules) as $ruleid) {
      field_validation_dynamic_delete_rule($ruleid);
    }
  }
}