You are here

function userreference_content_is_empty in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 modules/userreference/userreference.module \userreference_content_is_empty()
  2. 6.2 modules/userreference/userreference.module \userreference_content_is_empty()

Implementation of hook_content_is_empty().

File

modules/userreference/userreference.module, line 132
Defines a field type for referencing a user from a node.

Code

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