You are here

function field_collection_item_delete in Field collection 7

Deletion callback

1 string reference to 'field_collection_item_delete'
field_collection_entity_info in ./field_collection.module
Implements hook_entity_info().

File

./field_collection.module, line 399
Module implementing field collection field type.

Code

function field_collection_item_delete($id) {
  $fci = field_collection_item_load($id);
  if (!empty($fci)) {
    $fci
      ->delete();
  }
}