You are here

function classy_paragraphs_field_is_empty in Classy paragraphs 7

Implements hook_field_is_empty().

File

includes/classy_paragraphs.fields.inc, line 29
Implements custom field: cp_list (CLASSY_PARAGRAPHS_FIELD_TYPE_LIST).

Code

function classy_paragraphs_field_is_empty($item, $field) {
  if (empty($item['value'])) {
    return TRUE;
  }
  return FALSE;
}