You are here

function blockreference_field_is_empty in Block reference 7

Same name and namespace in other branches
  1. 7.2 blockreference.field.inc \blockreference_field_is_empty()

Implements hook_field_is_empty().

File

./blockreference.module, line 242
Defines a field type for referencing a block from a node.

Code

function blockreference_field_is_empty($item, $field) {

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