You are here

function mobile_codes_content_field_is_empty in Mobile Codes 6.2

Same name and namespace in other branches
  1. 7.2 includes/field.inc \mobile_codes_content_field_is_empty()
3 calls to mobile_codes_content_field_is_empty()
theme_mobile_codes_filefield_formatter in includes/filefield.inc
theme_mobile_codes_link_formatter in includes/link.inc
theme_mobile_codes_text_formatter in includes/text.inc

File

includes/content.inc, line 16
Content module integration.

Code

function mobile_codes_content_field_is_empty($element) {
  $field = content_fields($element['#field_name']);
  if (function_exists($function = "{$field['widget']['module']}_content_is_empty")) {
    return $function($element['#item'], $field);
  }
  return FALSE;
}