function taxonomy_field_is_empty
Implements hook_field_is_empty().
File
-
modules/
taxonomy/ taxonomy.module, line 1563
Code
function taxonomy_field_is_empty($item, $field) {
if (!is_array($item) || empty($item['tid']) && (string) $item['tid'] !== '0') {
return TRUE;
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.