function term_level_field_is_empty in Term Level Field 7
Implements hook_field_is_empty().
File
- ./
term_level.module, line 82 - Field type for referencing terms with a level to an entity.
Code
function term_level_field_is_empty($item, $field) {
if (!is_array($item) || empty($item['tid']) || !isset($item['level']) || $item['level'] === 'none') {
return TRUE;
}
return FALSE;
}