You are here

function node_reference_field_is_empty in References 7.2

Implements hook_field_is_empty().

File

node_reference/node_reference.module, line 286
Defines a field type for referencing one node from another.

Code

function node_reference_field_is_empty($item, $field) {

  // Nid = 0 is empty too, which is exactly what we want.
  return empty($item['nid']);
}