You are here

function text_content_is_empty in Content Construction Kit (CCK) 6

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

Implementation of hook_content_is_empty().

File

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

Code

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