You are here

function panopoly_widgets_field_is_empty in Panopoly Widgets 7

Implements hook_field_is_empty()

1 call to panopoly_widgets_field_is_empty()
panopoly_widgets_field_validate in ./panopoly_widgets.spotlight.inc
Implements hook_field_validate().

File

./panopoly_widgets.spotlight.inc, line 38
A specification for the custom spotlight entity that is part of Panopoly Widgets

Code

function panopoly_widgets_field_is_empty($item, $field) {
  if (empty($item['title']) && empty($item['link']) && empty($item['description']) && empty($item['fid'])) {
    return TRUE;
  }
  return FALSE;
}