You are here

function field_collection_field_is_empty in Field collection 7

Implements hook_field_is_empty().

File

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

Code

function field_collection_field_is_empty($item, $field) {
  if (!empty($item['value'])) {
    return FALSE;
  }
  if (isset($item['entity'])) {
    return field_collection_item_is_empty($item['entity']);
  }
  return TRUE;
}