taxonomy_field_is_empty

7 taxonomy.module taxonomy_field_is_empty($item, $field)
8 taxonomy.module taxonomy_field_is_empty($item, $field)

Implements hook_field_is_empty().

File

modules/taxonomy/taxonomy.module, line 1442
Enables the organization of content into categories.

Code

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