You are here

function rolereference_content_is_empty in Role Reference 6

Implementation of hook_content_is_empty().

File

./rolereference.module, line 199
Defines a field type for referencing a role. Based almost entirely on nodereference and userreference modules.

Code

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