You are here

function uuidreference_field_is_empty in UUID reference field 7

Implements hook_field_is_empty().

2 calls to uuidreference_field_is_empty()
UuidReferenceTest::testField in ./uuidreference.test
Tests the uuidreference field.
uuidreference_field_presave in ./uuidreference.module
Implements hook_field_presave().

File

./uuidreference.module, line 406

Code

function uuidreference_field_is_empty($item, $field) {
  return empty($item['target_uuid']) || !uuid_is_valid($item['target_uuid']);
}