You are here

function minisite_field_delete in Mini site 7

Implements hook_field_delete().

File

includes/minisite.field.inc, line 181
Minisite field.

Code

function minisite_field_delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
  list($id, , ) = entity_extract_ids($entity_type, $entity);

  // Delete all file usages within this entity.
  foreach ($items as $item) {
    minisite_file_field_delete_file($item, $field, $entity_type, $id, 0);
  }
}