You are here

function number_content_is_empty in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/number/number.module \number_content_is_empty()
  2. 6 modules/number/number.module \number_content_is_empty()

Implementation of hook_content_is_empty().

File

modules/number/number.module, line 256
Defines numeric field types.

Code

function number_content_is_empty($item, $field) {
  if (empty($item['value']) && (string) $item['value'] !== '0') {
    return TRUE;
  }
  return FALSE;
}