You are here

function paragraphs_pack_field_is_empty in Paragraphs pack 7

Implements hook_field_is_empty().

File

includes/paragraphs_pack.fields.inc, line 52
Implements custom fields: PP_FIELD_TYPE_VIEW_MODE.

Code

function paragraphs_pack_field_is_empty($item, $field) {
  if ($item['value'] == PP_VIEW_MODE_NONE) {
    return TRUE;
  }
  return FALSE;
}