You are here

function signaturefield_content_is_empty in SignatureField 6

Implementation of hook_content_is_empty().

CCK has no way to know if something like a zero is an empty value or a valid value, so return TRUE or FALSE to a populated field $item array. CCK uses this to remove empty multi-value elements from forms.

File

modules/content.inc, line 159
Content module integration.

Code

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