You are here

function flipping_book_reference_field_is_empty in Flipping Book 7

Implements hook_field_is_empty().

File

./flipping_book_reference.module, line 108
Defines a field type for referencing one flipping_book from a node.

Code

function flipping_book_reference_field_is_empty($item, $field) {

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