taxonomy_field_is_empty

Versions
7
taxonomy_field_is_empty($item, $field)

Implements hook_field_is_empty().

Code

modules/taxonomy/taxonomy.module, line 1060

<?php
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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.