function taxonomy_field_is_empty

Implements hook_field_is_empty().

Archivo

drupal-7.x/modules/taxonomy/taxonomy.module, line 1550
Enables the organization of content into categories.

Código

function taxonomy_field_is_empty($item, $field) {
  if (!is_array($item) || (empty($item['tid']) && (string) $item['tid'] !== '0')) {
    return TRUE;
  }
  return FALSE;
}