function nodereference_content_is_empty in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 modules/nodereference/nodereference.module \nodereference_content_is_empty()
- 6.2 modules/nodereference/nodereference.module \nodereference_content_is_empty()
Implementation of hook_content_is_empty().
File
- modules/
nodereference/ nodereference.module, line 180 - Defines a field type for referencing one node from another.
Code
function nodereference_content_is_empty($item, $field) {
if (empty($item['nid'])) {
return TRUE;
}
return FALSE;
}