You are here

function text_content_is_empty in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/text/text.module \text_content_is_empty()
  2. 6 examples/simple_field.php \text_content_is_empty()
  3. 6 examples/example_field.php \text_content_is_empty()
  4. 6 modules/text/text.module \text_content_is_empty()

Implementation of hook_content_is_empty().

File

modules/text/text.module, line 187
Defines simple text field types.

Code

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